接口名称:_shopee.item_review
请求方式:GET/POST
返回数据:json格式
请求示例
<?php
// 请求示例 url 默认请求参数已经URL编码处理
// 本示例代码未加密secret参数明文传输,若要加密请参考:https://open.qq1635608656.cn/help/demo/sdk/demo-sign.php
$method = "GET";
$url = "https://服务器地址/shopee/item_review/?key=<您自己的apiKey>&secret=<您自己的apiSecret>&item_id=239487269/5435412264&country=.com.my&page=1";
$curl = curl_init();
curl_setopt($curl, CURLOPT_CUSTOMREQUEST, $method);
curl_setopt($curl, CURLOPT_URL, $url);
curl_setopt($curl, CURLOPT_SSL_VERIFYHOST,FALSE);
curl_setopt($curl, CURLOPT_SSL_VERIFYPEER,FALSE);
curl_setopt($curl, CURLOPT_FAILONERROR, false);
curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);
curl_setopt($curl, CURLOPT_HEADER, true);
curl_setopt($curl, CURLOPT_ENCODING, "gzip");
var_dump(curl_exec($curl));
?>
响应参数
Version: Date:
名称 | 类型 | 必须 | 示例值 | 描述 |
rate_content | String | 0 | The quality suits the price. \nFor hijabi it best to wear camisole along as it quite see through. \nPackaging is nice 👍🏽 \nReceived less than 10 days💯\n | 评论内容 |
rate_date | Date | 0 | 2020-09-08 02:58:25 | 评论日期 |
pics | MIX | 0 | 评论图片 | |
display_user_nick | String | 0 | eikasaleh12 | 买家昵称 |
auction_sku | String | 0 | White,M | 评论商品属性 |
liked_count | String | 0 | 7 | |
video | String | 0 | 视频地址 |
公共参数
名称 | 类型 | 必须 | 描述 |
key | String | 是 | 调用key(获取测试key) |
secret | String | 是 | 调用密钥 |
api_name | String | 是 | API接口名称(包括在请求地址中)[item_search,item_get,item_search_shop等] |
cache | String | 否 | [yes,no]默认yes,将调用缓存的数据,速度比较快 |
result_type | String | 否 | [json,jsonu,xml,serialize,var_export]返回数据格式,默认为json,jsonu输出的内容中文可以直接阅读 |
lang | String | 否 | [cn,en,ru]翻译语言,默认cn简体中文 |
version | String | 否 | API版本 |
请求参数
请求参数:item_id=239487269/5435412264&country=.com.my&page=1
参数说明:item_id:商品ID-country:网站后缀(.com.my;.vn;.ph)