请求参数:nick=lin130021&shop_url=https://shop63387065.taobao.com/
参数说明:nick:掌柜昵称
shop_url:PC端店铺主页地址
API测试工具 点击申请试用
响应参数
Version: Date:
名称 | 类型 | 必须 | 示例值 | 描述 |
---|---|---|---|---|
shop_id | Bigint | 0 | 63387065 | 店铺ID |
sid | Bigint | 0 | 63387065 | |
seller_id | Bigint | 0 | 59531614 | 卖家ID |
nick | String | 0 | lin130021 | 掌柜名字 |
shop_name | String | 0 | 外新人 琳琳 | 店铺名 |
shop_type | String | 0 | c | 店铺类型 |
shop_url | String | 0 | https://shop63387065.taobao.com/ | 店铺主页 |
level | Mix | 0 | {"rank": 5,"type":"cap"} | 店铺等级 |
score | Mix | 0 | [] | 店铺评分 |
tel | String | 0 | 1891226351 | 电话 |
data_from | String | 0 |
请求示例
<?php
// 请求示例 url 默认请求参数已经URL编码处理
// 本示例代码未加密secret参数明文传输,若要加密请参考:https://open.onebound.cn/help/demo/sdk/demo-sign.php
$method = "GET";
$url = "https://api-gw.onebound.cn/taobao/seller_info/?key=<您自己的apiKey>&secret=<您自己的apiSecret>&nick=lin130021&shop_url=https://shop63387065.taobao.com/";
$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 返回结果.
https://api-gw.onebound.cn/taobao/seller_info/?key=&
&nick=lin130021&shop_url=https://shop63387065.taobao.com/&cache=no&&lang=zh-CN&secret=
---------------------------------------
Result Object:
---------------------------------------
{
"user": {
"shop_id": "",
"sid": "",
"seller_id": "",
"nick": "",
"shop_name": "",
"shop_type": "C",
"shop_url": "https://shop63387065.taobao.com/",
"level": {
"rank": 0,
"type": ""
},
"score": [],
"tel": "",
"data_from": "PC"
},
"translate_status": "",
"translate_time": 0,
"language": {
"default_lang": "cn",
"current_lang": "cn"
},
"error": "",
"reason": "",
"error_code": "0000",
"cache": 0,
"api_info": "today:101 max:10100 all[183=101+47+35];expires:2030-12-31",
"execution_time": "0.116",
"server_time": "Beijing/2022-09-26 16:43:27",
"client_ip": "106.6.33.90",
"call_args": {
"nick": "lin130021",
"shop_url": "https://shop63387065.taobao.com/"
},
"api_type": "taobao",
"translate_language": "zh-CN",
"translate_engine": "google_new",
"server_memory": "0.84MB",
"request_id": "gw-4.6331662f1131c",
"last_id": "1244788860"
}