淘宝联盟接口——高佣转链接口介绍(支持微信打开+自定义淘口令符号)
作者:互联网
高佣是淘客开发必备。若无高佣,收入相差3-5倍以上。如果应用是淘客代理或分销,没有高佣根本不可能做起来。大淘客开放平台高佣转链接口不仅拥有丰富的接口,更全网独家支持自定义淘口令符号+快站链接(可在微信打开),各种场景均可推广使用~
接口亮点:支持返回快站链接(可在微信里直接打开浏览商品),可自定义淘口令符号
应用场景:可用于导购平台的高佣转链工具,或者在用户下单时调用
一、接口接入步骤:
1、注册大淘客开放平台并获取APPKEY
2、授权大淘客PID
3、接口调用
二、接口调用示例:
String url = "https://openapi.dataoke.com/api/tb-service/get-privilege-link";
String appKey = "xxx";
String appSecret = "xxx";
TreeMap<String, String> paraMap = new TreeMap<>();
paraMap.put("version", "v1.3.0");
paraMap.put("appKey", appKey);
paraMap.put("goodsId", "530885058847");
String data = ApiClient.sendReq(url, appSecret, paraMap);
三、接口返回示例:
{
status: 200,
data: {
time: 1598946537777,
code: 0,
msg: "成功",
data: {
couponClickUrl: "https://uland.taobao.com/coupon/edetail?e=LCnJWzIy8tUGQASttHIRqTYYcS2Iro4jK2%2BJI7%2F4RPB%2F6pl3MjcEubH2A8%2BEQTrjtawzeKC18AXUj7rKYxTRVth9MuaGC%2B1pWv9OAj9evKDahba4h8MrZ%2Bdth9k8bqqSHKTgBzHkoM7XTQC0vfau6E%2F9Zk7cDx8UPrKiYwdarE%2FmZlrHb6YhPHui%2Fn%2FQ7Z5VJn9Mr14cp%2FDbTe5vXEuE1A%3D%3D&traceId=0bb61b0b15989465375564715eeceb&union_lens=lensId:TAPI@1598946537@0b1545dd_0d69_17448a3f070_c015@01&activityId=08c9cbadce574e13ae6d015ec7a4dc17",
couponEndTime: "2020-09-02",
couponInfo: "满40元减5元",
couponStartTime: "2020-09-01",
itemId: "535615570326",
couponTotalCount: "100000",
couponRemainCount: "100000",
itemUrl: "https://s.click.taobao.com/t?e=m%3D2%26s%3Dj%2F20A0nZ2HNw4vFB6t2Z2ueEDrYVVa64K7Vc7tFgwiHLWlSKdGSYDgBi8qN29g3dlovu%2FCElQOsHfn%2FCbIhLuAxQE6vJOn1L%2BQ8vtIwWbsIspAC80QBskx8X7G7Q37BaSJpaa6H0%2BPDF4qyLP3Oqz%2F1SarTXhIOTrhzfEh3ilxbbJ2%2FqLVUXutkYvQZuIwx3oGeIQL4Fi9Gsb%2FLqJX5TW3YHgeIfcEekAtuQeASk5p8tzYMUmFOYRg%3D%3D&union_lens=lensId:TAPI@1598946537@0b1545dd_0d69_17448a3f070_c015@01",
tpwd: "¥dkFqcWgeSEj¥",
maxCommissionRate: "15.00",
shortUrl: "https://s.click.taobao.com/DILqywu",
minCommissionRate: ""
}
},
msg: "请求成功"
}
接口文档地址:http://www.dataoke.com/kfpt/api-d.html?id=7
标签:String,自定义,微信,接口,高佣转,https,paraMap,com 来源: https://blog.csdn.net/pl04530/article/details/115009043