请求方式:GET
注:请求参数须区分大小写
String url = "https://openapi.dataoke.com/api/tb-service/twd-to-twd";
String appKey = "xxx";
String appSecret = "xxx";
TreeMap<String, String> paraMap = new TreeMap<>();
paraMap.put("version", "v1.0.0");
paraMap.put("appKey", appKey);
String data = ApiClient.sendReq(url, appSecret, paraMap);
SDK调用示例
String appKey = "xxx";
String appSecret = "xxx";
DtkApiClient client = DtkApiClient.getInstance(appKey,appSecret);
DtkTwdToTwdRequest request = new DtkTwdToTwdRequest();
request.setVersion("v1.0.0");
request.setContent("复制这条信息,打开手机淘宝领券下单(4j9ZXjl7pel):/");
request.setPid("mm_27399943_1915200219_110990500489");
request.setChannelId("0");
request.setSpecial_id("0");
request.setExternal_id("0");
DtkApiResponse < DtkTwdToTwdResponse > execute = client.execute(request);
{
"time": 1597312154111,
"code": 0,
"msg": "成功",
"data": {
"couponClickUrl": "",
"couponEndTime": "",
"couponInfo": "",
"couponStartTime": "",
"itemId": "577582267511",
"couponTotalCount": "",
"couponRemainCount": "",
"originUrl": "https://uland.taobao.com/coupon/edetail?e=0XTYaxrV4nQGQASttHIRqYLsyl3baZLsB0Kqi0hLZnZWGKUTWWim8zZAq%2BmR21y8ztC5Ka9Rt%2Fn7hHFiLOQ7kRrn5v%2Bgi70NY1kWovEdEWPKdDtLTN7C7%2FsnwWZGSCD41ug731VBEQm0m3Ckm6GN2CwynAdGnOngMmnVmWO1H8vvI9wRv%2BDqFlLajOROSSHl4ncgeMjsGdDyQVoTTYs3iQ%3D%3D&traceId=0bb6ad0215970492414305883eef88&union_lens=lensId:TAPI@1597049241@0b081808_0d3e_173d78d7f6e_9380@01&xId=53dxYB9Rg8iMfaftInhfw9BfakT1XpOOv6EsblxQs0vmeSK9mxlXkmx0CsDO7M9rYHLkRyeWBfjy32briYLet6QogQPJi8xnYHDgYGXCEpen&activityId=fdf21ddd628b4cce8cdff627df62f5ba&src=qhkj_dtkp&un=29d42553880b264c4b68d5f77a161062&share_crt_v=1&ut_sk=1.utdid_23116944_1597049241516.TaoPassword-Outside.taoketop&spm=a2159r.13376465.0.0&sp_tk=cG1jaWNZVHZ2Vjc=&bxsign=tcd1597312152946fc7f667b068b4c009d08dc8e0b66ad20",
"tpwd": "¥E08xc1WLlOY¥",
"maxCommissionRate": "0.97",
"shortUrl": "https://s.click.taobao.com/66XScxu",
"minCommissionRate": "",
"title": "包邮认养一头牛常温法式酸奶200g*12盒早餐风味酸牛奶整箱送礼"
}
}