批量对商品评论信息打标
开发中
POST
/voc/reviews/tags
请求参数
Body 参数application/json
category
string
必需
示例值:
Tools & Home Improvement
reviews
array[string]
评论信息列表
示例
{
"category": "Video Games / PlayStation 4 / Accessories / Headsets",
"reviews": [
"I loved the headphones when I first purchased them. I’m not sure how they got broken but my 6 year old has found a way to make it to where nothing can be heard out of them."
]
}
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST '/voc/reviews/tags' \
--header 'Content-Type: application/json' \
--data-raw '{
"category": "Video Games / PlayStation 4 / Accessories / Headsets",
"reviews": [
"I loved the headphones when I first purchased them. I’m not sure how they got broken but my 6 year old has found a way to make it to where nothing can be heard out of them."
]
}'
返回响应
🟢200成功
application/json
Body
code
string
状态码
msg
string
错误信息
data
array [object {2}]
数据结果
text
string
原始评论信息
tags
array [object {6}]
标签列表
示例
{
"code": 200,
"msg": "success",
"data": [
{
"text": "I would have to say that I am very disappointed on this product. After reviewing all the reviews I found it ideal to order one because, after all black goes with everything, especially from working out you wont be able to see the stains. Now I have to say that when I placed it on my Fitbit Versa I was having trouble putting it on and after all the pin broke and the pin was left inside. Idk if it's because it's not from the manufacturer but I was overall disappointed.",
"tags": [
{
"tag": "Customer Service",
"sentiment": 0,
"startOffset": 65,
"endOffset": 134,
"tagType": "reason",
"subTag": "Positive Reviews"
},
{
"tag": "Defective Pin",
"sentiment": -1,
"startOffset": 336,
"endOffset": 388,
"tagType": "cons",
"subTag": "Defective Pin"
}
]
}
]
}
修改于 2023-10-24 06:24:25