Taobao review API interface, item_review-get access instructions for Taobao product review API interface

1. item_review-Get Taobao product review API interface access instructions:
click to register to get the key and secret test account
2. Suggested use scenarios
1. Get Taobao Tmall comment interface
2. Get product detail page data information
3. Mall system construction
4. Purchasing system mall construction
5. ERP system product selection
3. Public parameter description: the
name type must describe the
key String is the calling key (must be spliced ​​in the URL by GET)
secret String is the calling key
api_name String is the API interface name (including In the request address) [item_search,item_get,item_search_shop, etc.]
cache String No [yes,no] default yes, will call the cached data, faster
result_type String No [json,jsonu,xml,serialize,var_export] return data format , The default is json, the content output by jsonu can be read directly in Chinese.
lang String No [cn,en,ru] translation language, default cn simplified Chinese
version String No API version
4. API request parameter description:
request parameter: num_iid=600530677643&data=&page =1
Parameter description: num_iid: Taobao product ID
sort: sort 0: default sort, 1: latest sort
5. Response parameters
Whether the name type is private or not. Example value description
rate_content String The fabric is very good and comfortable to wear. The clothes are quite suitable! Comment content
rate_date Date 2019-03-16 12:10:24 Comment date
pics MIX ["//img.alicdn.com/bao/uploaded/i4/O1CN01Zmq4QI1dqwnpBIxmX_!!0-rate.jpg"] Comment picture
display_user_nick String Li* **0 Buyer's nickname
auction_sku String Color: white (plus velvet); Size: 2XL Comment on product attributes
add_feedback String The fabric is very good and comfortable to wear. The clothes are suitable! Comment content
add_feedback_images MIX ["//img.alicdn.com/bao/uploaded/i4/O1CN01Zmq4QI1dqwnpBIxmX_!!0-rate.jpg"] Comment image
video String http://cloud.video.taobao.com/play/ u/416a306c576e44524a75367539493165745863466b513d3d/p/1/d/sd/e/6/t/1/288913501300.mp4 Video address
videoCover String https://img.alicdn.com/imgextra/i3/O1CN01cvjYjY28SRpqyDJIN_!!0-tbbala.jpg Video Screenshot
6. Request example: (CURL, PHP, PHPsdk, Java, C#, Python...)

<?php

// 请求示例 url 默认请求参数已经URL编码处理
// 本示例代码未加密secret参数明文传输,若要加密请参考:https://api.onebound.cn/taobao/demo/sdk2020/demo-sign.php
$method = "GET";
$url = "https://api-gw.onebound.cn/taobao/item_review/?key=<您自己的apiKey>&secret=<您自己的apiSecret>&num_iid=600530677643&data=&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));
?>


API tool
API SDK call sample
APISDK download
API test tool

How to activate the API test, click to activate immediately

Guess you like

Origin blog.csdn.net/wx_19970108018/article/details/112765341
Recommended