参数 | 类型 | 必选 | 值 | 示例 |
Authorization | string | 是 | 授权 access_token | Bearer 1798c6aadec33d1bc2f5b707f1049aefexxxx |
参数 | 类型 | 必选 | 描述 |
product_id | string | 是 | 商品ID 我们会根据商品ID抓取店铺ID |
query_date | string | 是 | 日期,如果日期是当天之前,不会返回收藏量、购买件数、加购量 |
curl --location --request GET 'http://xxxxxxxxxxxxx.com/tool/accounts/goods-analysis?product_id=618323631732&query_date=2020-10-15' \ --header 'Authorization: Bearer eb88e6e76fbc29859e34882d7d931d4d8xxxxxxxx' \ --header 'Cookie: PHPSESSID=7oragegj44p1v145fhaev7o4n3; _csrf=9f4f75a4c3d3fd13bf8bc0b35c827878697a5f72e82b88751b58a1cd6b79c7ffa%3A2%3A%7Bi%3A0%3Bs%3A5%3A%22_csrf%22%3Bi%3A1%3Bs%3A32%3A%22s6Uvj5DBusOX0t_lrB4phGzZBumYmzeR%22%3B%7D'
<?php $curl =curl_init(); curl_setopt_array($curl, array( CURLOPT_URL=>"http://xxxxxxxxxxxxxxxxxxxxx.com/tool/accounts/goods-analysis?product_id=618323631732&query_date=2020-10-15", CURLOPT_RETURNTRANSFER=>true, CURLOPT_ENCODING=>"", CURLOPT_MAXREDIRS=>10, CURLOPT_TIMEOUT=>0, CURLOPT_FOLLOWLOCATION=>true, CURLOPT_HTTP_VERSION=>CURL_HTTP_VERSION_1_1, CURLOPT_CUSTOMREQUEST=>"GET", CURLOPT_HTTPHEADER=>array( "Authorization: Bearer eb88e6e76fbc29859e34882d7d931d4xxxxxxxx", "Cookie: PHPSESSID=7oragegj44p1v145fhaev7o4n3; _csrf=9f4f75a4c3d3fd13bf8bc0b35c827878697a5f72e82b88751b58a1cd6b79c7ffa%3A2%3A%7Bi%3A0%3Bs%3A5%3A%22_csrf%22%3Bi%3A1%3Bs%3A32%3A%22s6Uvj5DBusOX0t_lrB4phGzZBumYmzeR%22%3B%7D" ), )); $response =curl_exec($curl); curl_close($curl); echo $response;
如果觉得我的文章对您有用,请随意打赏。你的支持将鼓励我继续创作!