来赞达商品评论
<h3>接口描述</h3>
<ul>
<li>来赞达商品评价信息查询,支持的域名站点有马来西亚、 印度尼西亚、 新加坡、菲律宾、 泰国、越南</li>
</ul>
<h3>请求地址</h3>
<p><code>https://api.jumdata.com/lazada/goods/rate</code></p>
<h3>请求方式</h3>
<ul>
<li>GET/POST</li>
</ul>
<h3>请求格式</h3>
<ul>
<li>x-www-form-urlencoded</li>
</ul>
<h3>请求参数</h3>
<table>
<thead>
<tr>
<th>名称</th>
<th>类型</th>
<th>必须</th>
<th><div style="width:420px">说明</div></th>
</tr>
</thead>
<tbody>
<tr>
<td>appId</td>
<td>String</td>
<td>是</td>
<td>服务商分配的唯一标识</td>
</tr>
<tr>
<td>timestamp</td>
<td>Long</td>
<td>是</td>
<td>当前时间的毫秒数</td>
</tr>
<tr>
<td>sign</td>
<td>String</td>
<td>是</td>
<td>签名,见签名算法说明</td>
</tr>
<tr>
<td>goodsId</td>
<td>String</td>
<td>是</td>
<td>商品id</td>
</tr>
<tr>
<td>land</td>
<td>String</td>
<td>是</td>
<td>站点域名 马来西亚:com.my, 印度尼西亚:co.id, 新加坡:sg,菲律宾:com.ph,泰国:co.th, 越南:vn</td>
</tr>
<tr>
<td>pageNo</td>
<td>Integer</td>
<td>是</td>
<td>页数</td>
</tr>
<tr>
<td>sort</td>
<td>Integer</td>
<td>是</td>
<td>排序 0:Relevance,1:Recent, 2:Rating: High to Low ,3:Rating: Low to High</td>
</tr>
</tbody>
</table>
<h3>签名算法说明</h3>
<pre><code>sign = sha256( appId + appSecret + timestamp)</code></pre>
<p>用服务商分配的 appId、服务商分配的 appSecret,当前时间毫秒数 timestamp,按上述顺序拼接成字符串,再进行 sha256 哈希得到。如下:</p>
<pre><code class="language-java">String appId = &quot;xyzxy2121zxyz&quot;;
String timestamp = &quot;1555378976238&quot;;
String appSecret = &quot;efcefcef1121cefcefc1212121&quot;;
String str = appId + appSecret + timestamp;
String sign = sha256(str);</code></pre>
<h3>正确返回样例</h3>
<pre><code class="language-json">// 查得
{
&quot;code&quot;: 200,//返回码,详见返回码说明
&quot;msg&quot;: &quot;成功&quot;,//code对应的描述
&quot;taskNo&quot;: &quot;987180686132393161428391&quot;,//本次请求号
&quot;charge&quot;: true,//计费标志
&quot;data&quot;: {
&quot;item&quot;: {
&quot;itemTitle&quot;: &quot;ชั้นวางรองเท้า ตู้เก็บรองเท้า 7ชั้น จำนวน 21 คู่ ผ้าคลุม กันน้ำ กันฝุ่น พร้อมช่องเก็บของด้านข้าง ตู้ใส่รองเท้า ชั้นวางรองเท้า ตู้เก็บรองเท้า 3ชั้น จำนวน 9 คู่ ผ้าคลุม กันน้ำ กันฝุ่น พร้อมช่องเก็บของด้านข้าง ตู้ใส่รองเท้า&quot;,
&quot;sellerName&quot;: &quot;XIAOQIONG&quot;,
&quot;categoryName&quot;: &quot;อุปกรณ์จัดเก็บรองเท้า&quot;,
&quot;rootCategoryId&quot;: 11829,
&quot;itemId&quot;: 481356760,
&quot;sellerId&quot;: 1000277138,
&quot;itemPic&quot;: &quot;https://th-live.slatic.net/p/8099a14a44b54b5bd75db388ca1c5a46.jpg&quot;,
&quot;configSku&quot;: &quot;481356760_TH&quot;,
&quot;itemStatus&quot;: 1,
&quot;rootCategoryName&quot;: &quot;เฟอร์นิเจอร์และอุปกรณ์จัดเก็บ&quot;,
&quot;skuInfo&quot;: &quot;สี:Red wine&quot;,
&quot;categoryId&quot;: 11910,
&quot;itemUrl&quot;: &quot;https://www.lazada.co.th/products/7-21-3-9-i481356760-s870956755.html&quot;
},
&quot;mediaList&quot;: [
{
&quot;coverUrl&quot;: &quot;https://lzd-u.slatic.net/9dc28f247c30433a9a95e9855c7d6431_1fd6b7ddb562440a877fb7f400951b6f.jpg&quot;,
&quot;size&quot;: 0,
&quot;width&quot;: 0,
&quot;reviewType&quot;: &quot;PRODUCT_REVIEW&quot;,
&quot;mediaType&quot;: 1,
&quot;reviewRateId&quot;: 747301615956760,
&quot;height&quot;: 0
}
],
&quot;showInfo&quot;: {
&quot;showAuthTipsUrl&quot;: &quot;https://www.lazada.co.th/wow/gcp/route/lazada/th/upr_1000345_lazada/channel/th/upr-router/th?hybrid=1&amp;data_prefetch=true&amp;prefetch_replace=1&amp;at_iframe=1&amp;wh_pid=/lazada/channel/th/ac_guide/pfeiGxYdsr&quot;,
&quot;showAuthTips&quot;: true
},
&quot;ratings&quot;: {
&quot;average&quot;: 4.8,
&quot;localReviewsCount&quot;: 2812,
&quot;hiddenCount&quot;: 1671,
&quot;scores&quot;: [
2491,
192,
70,
18,
41
],
&quot;videosCount&quot;: 46,
&quot;imagesCount&quot;: 423,
&quot;mediaNum&quot;: 711,
&quot;withVideoCount&quot;: 46,
&quot;rate12Stars&quot;: 59,
&quot;withMediaCount&quot;: 478,
&quot;rateCount&quot;: 2812,
&quot;reviewCount&quot;: 2812,
&quot;labelCounts&quot;: [],
&quot;withImageCount&quot;: 460
},
&quot;paging&quot;: {
&quot;totalItems&quot;: 2812,
&quot;totalPages&quot;: 282,
&quot;currentPage&quot;: 1
},
&quot;items&quot;: [
{
&quot;imageHost&quot;: &quot;//th-live.slatic.net&quot;,
&quot;isGuest&quot;: false,
&quot;likeCount&quot;: 0,
&quot;reviewRateId&quot;: 747107856256760,
&quot;isPurchased&quot;: true,
&quot;clientType&quot;: &quot;&quot;,
&quot;isExternal&quot;: 0,
&quot;targetId&quot;: 481356760,
&quot;viewCounts&quot;: 0,
&quot;itemId&quot;: 481356760,
&quot;isAnonymous&quot;: false,
&quot;mediaList&quot;: [],
&quot;replies&quot;: [],
&quot;reviewStatus&quot;: &quot;approved&quot;,
&quot;canEdit&quot;: true,
&quot;reviewType&quot;: &quot;PRODUCT_REVIEW&quot;,
&quot;downVotes&quot;: 0,
&quot;itemPic&quot;: &quot;https://th-live.slatic.net/p/c17f28f7edeaebe00f0d1c7e35092aee.jpg&quot;,
&quot;isBuyerShowEnabled&quot;: true,
&quot;targetType&quot;: &quot;item&quot;,
&quot;avatar&quot;: &quot;&quot;,
&quot;buyerName&quot;: &quot;จุฑามาศ แ.&quot;,
&quot;boughtDate&quot;: &quot;05 พ.ย. 2023&quot;,
&quot;configSku&quot;: &quot;481356760_TH&quot;,
&quot;isSocialCommentsEnabled&quot;: true,
&quot;itemUrl&quot;: &quot;https://www.lazada.co.th/products/7-21-3-9-i481356760-s870956759.html&quot;,
&quot;rating&quot;: 5,
&quot;source&quot;: &quot;orderDetail&quot;,
&quot;buyerId&quot;: 100059126005,
&quot;sellerId&quot;: 1000277138,
&quot;helpful&quot;: true,
&quot;skuId&quot;: &quot;870956759&quot;,
&quot;isCrossVenture&quot;: false,
&quot;upVotes&quot;: 0,
&quot;showVideoUploader&quot;: true,
&quot;reviewTime&quot;: &quot;56 นาทีก่อน&quot;,
&quot;itemTitle&quot;: &quot;ชั้นวางรองเท้า ตู้เก็บรองเท้า 7ชั้น จำนวน 21 คู่ ผ้าคลุม กันน้ำ กันฝุ่น พร้อมช่องเก็บของด้านข้าง ตู้ใส่รองเท้า ชั้นวางรองเท้า ตู้เก็บรองเท้า 3ชั้น จำนวน 9 คู่ ผ้าคลุม กันน้ำ กันฝุ่น พร้อมช่องเก็บของด้านข้าง ตู้ใส่รองเท้า&quot;,
&quot;rejected&quot;: false,
&quot;isGoodReview&quot;: false,
&quot;isReportable&quot;: 0,
&quot;submitInfo&quot;: {
&quot;WUA&quot;: &quot;ETlD_10U966U74/24uoh9GeDlRbriZStKwKSnr3z31Hl7jkmnhtLbgFuW3dtuFsFap37loLzTqefEEmJrPUlx/KipeSkublHLBzmvXjvGIvig+BxrA7fB6ndMux7eMG1etFNfWT45ffZUxCgzsdPoAwE6VNYUDIvFwk6uhqYdSniGDYjYPfArhkEdXm1d5oNQ4aIPiR8IYcBUTWodI4WF3nk6fLM/TYWnTyaxOXT2ydGIp9NFvTQMQ1Oa4sTKfgIImhl5sykSIB9XOkSTkkTk5x+CFfLfjqgpBa6LaM+YZ0xTdFrVLEWJEomy6bTdHpvZHb0UFyFKc+B5mOAwolzRsWhKUw==&quot;,
&quot;appVersion&quot;: &quot;7.37.0&quot;,
&quot;os&quot;: &quot;android&quot;,
&quot;ENTRANCE&quot;: &quot;native&quot;,
&quot;utdid&quot;: &quot;ZOYdmvFsmlwDAIh28OdVLEZj&quot;,
&quot;IP&quot;: &quot;118.174.88.36&quot;,
&quot;source&quot;: &quot;orderDetail&quot;,
&quot;terminal&quot;: &quot;native&quot;,
&quot;UA&quot;: &quot;{\&quot;deviceModel\&quot;:\&quot;V2247\&quot;,\&quot;deviceOS\&quot;:\&quot;Android\&quot;,\&quot;deviceOSVersion\&quot;:\&quot;13\&quot;,\&quot;manufacturer\&quot;:\&quot;vivo\&quot;,\&quot;mtopSDK\&quot;:\&quot;MTOPSDK/3.1.1.7\&quot;,\&quot;mtopSDKVersion\&quot;:\&quot;3.1.1.7 \&quot;,\&quot;mtopUAString\&quot;:\&quot;MTOPSDK/3.1.1.7 (Android;13;vivo;V2247)\&quot;}&quot;,
&quot;APP_KEY&quot;: &quot;23867946&quot;,
&quot;network&quot;: &quot;WIFI&quot;,
&quot;SERVER_ENV_RAW&quot;: &quot;294&quot;,
&quot;UMID&quot;: &quot;FIkDIAFLPGiLlgGLu3LWyZe19MmuNnW2&quot;,
&quot;MINI_WUA&quot;: &quot;avgT3ecjbGSUqRfc8eE6lEYUrtmOnNv9S1OkFlhfD3SiFwClV%2ByWWzJZQrlKobswg27FnHSjpDGWIxNeIX4prka%2FnOFTWtFgwKfRsboIGRbBP5AG3b%2BAw7iddjBPdgAuREV5Nvcd9xM5wOBB6pVo981FQd9Gyxwee%2FMyz6CTWJ51HHA2ol4M%2BtVp23TW7%2Bixuy4I%3D&quot;,
&quot;COUNTRY_CODE&quot;: &quot;th&quot;
},
&quot;isQced&quot;: false,
&quot;isCompleted&quot;: 1,
&quot;reportTimes&quot;: 0,
&quot;gradeItems&quot;: {
&quot;LOGISTICS_REVIEW&quot;: 5,
&quot;PRODUCT_REVIEW&quot;: 5,
&quot;SELLER_REVIEW&quot;: 5
},
&quot;relevanceScore&quot;: 16.6,
&quot;commentsCount&quot;: 0,
&quot;reviewContentList&quot;: [
{
&quot;attribute&quot;: &quot;&quot;,
&quot;content&quot;: &quot;&quot;
}
],
&quot;showUploader&quot;: true,
&quot;skuInfo&quot;: &quot;สี:Coffce1&quot;,
&quot;categoryId&quot;: 11910
}
]
}
}
// 查无
{
&quot;msg&quot;: &quot;未找到对应的商品评论信息&quot;,//code对应的描述
&quot;code&quot;: 201,//返回码,详见返回码说明
&quot;taskNo&quot;: &quot;467156499184395572610133&quot;,//本次请求号
&quot;charge&quot;: false //计费标志
}</code></pre>
<h3>错误返回样例</h3>
<pre><code class="language-json">{
&quot;code&quot;: 400,//返回码,详见返回码说明
&quot;msg&quot;: &quot;商品id不能为空&quot;,//code对应的描述
&quot;charge&quot;: false //计费标志
}</code></pre>
<h3>返回字段说明</h3>
<table>
<thead>
<tr>
<th>字段名</th>
<th><div style="width:420px">说明</div></th>
</tr>
</thead>
<tbody>
<tr>
<td>code</td>
<td>返回码,详见:code返回码说明</td>
</tr>
<tr>
<td>msg</td>
<td>code对应的描述</td>
</tr>
<tr>
<td>charge</td>
<td>计费标志</td>
</tr>
<tr>
<td>taskNo</td>
<td>本次请求号</td>
</tr>
<tr>
<td>data</td>
<td>商品信息</td>
</tr>
</tbody>
</table>
<h4>code返回码说明</h4>
<table>
<thead>
<tr>
<th>code</th>
<th><div style="width:420px">说明</div></th>
</tr>
</thead>
<tbody>
<tr>
<td>200</td>
<td>成功(计费)</td>
</tr>
<tr>
<td>201</td>
<td>未找到对应的商品评论信息(不计费)</td>
</tr>
<tr>
<td>400</td>
<td>参数错误</td>
</tr>
<tr>
<td>404</td>
<td>接口地址不正确</td>
</tr>
<tr>
<td>500</td>
<td>系统维护,请稍候再试</td>
</tr>
<tr>
<td>601</td>
<td>接口未开通</td>
</tr>
<tr>
<td>602</td>
<td>账号停用</td>
</tr>
<tr>
<td>603</td>
<td>余额不足请充值</td>
</tr>
<tr>
<td>604</td>
<td>接口停用</td>
</tr>
<tr>
<td>606</td>
<td>调用超限,请稍候再试</td>
</tr>
<tr>
<td>609</td>
<td>请求过于频繁,请稍候再试</td>
</tr>
<tr>
<td>610</td>
<td>请求超时</td>
</tr>
<tr>
<td>999</td>
<td>其他,以实际返回为准</td>
</tr>
</tbody>
</table>