卡首屏API接口返回Api列表
通过扫二维码,可以让商品卡在手机淘宝首屏,排名靠前,让买家更容易找到商品,提供2个卡首屏二维码,一次生成永久有效
请求地址
http://www.taoyanhao.com/Api/Rest.ashx?type=KaPingDanpin
请求参数
| 名称 | 类型 | 必须 | 描述 |
|---|---|---|---|
| uid | String | 是 | 用户id,在淘测测登录后有显示 |
| ticks | String | 是 | 13位时间戳,格式为1557052966760,API允许请求最大时间误差为10分钟。 |
| itemid | String | 是 | 商品ID,和淘口令二选一 |
| key | String | 是 | 关键词 uft-8编码 |
| token | String | 是 | 本次请求的签名,算法为:MD5(uid+ticks+itemid+key+secret),key需要uft-8编码。 【secret在会员中心里,点此查看】 |
返回结果
失败时:
{
"success": false,
"info": "非法请求"
}
成功时:
{
"shortUrl": "http://tb.cn/dsqhjxv",
"shortUrlEx": "http://tb.cn/Piuhjxv",
"qrcode": "http://www.taocece.com/barcode/20191025/KaShouPing824ebee99c8c4cfdb2a6c0de7a4460f0.jpg",
"qrcodeEx": "http://www.taocece.com/barcode/20191025/KaShouPingEx2ec09870334d4c699377bd9d2ee486e4.jpg",
"balance": "6048",
"point": "0",
"success": true,
"info": ""
}
返回参数
| 名称 | 类型 | 描述 |
|---|---|---|
| shortUrl | String | 短链接 |
| shortUrlEx | String | 增强短链接 |
| qrcode | String | 二维码 |
| qrcodeEx | String | 增强二维码 |
| success | String | 接口调用是否成功,true/false |
| info | String | 返回失败时的提示消息 |