请求方式:GET
注:请求参数须区分大小写
String url = "https://openapi.dataoke.com/api/shop/get-shop-convert-info";
String appKey = "xxx";
String appSecret = "xxx";
TreeMap<String, String> paraMap = new TreeMap<>();
paraMap.put("version", "v1.0.0");
paraMap.put("sellerId", "1111111111");
paraMap.put("pid", appKey);
paraMap.put("relationId", "1");
paraMap.put("shopName", "1");
String data = ApiClient.sendReq(url, appSecret, paraMap);
SDK调用示例
String appKey = "xxx";
String appSecret = "xxx";
DtkApiClient client = DtkApiClient.getInstance(appKey,appSecret);
DtkShopConvertRequest request = new DtkShopConvertRequest();
request.setVersion("v1.0.0");
request.setSellerId("1111111111");
request.setPid("xxx");
request.setShopName("1");
request.setRelationId("1");
DtkApiResponse < DtkShopConvertResponse > execute = client.execute(request);
{ "time": 1605143776225, "code": 0, "msg": "成功", "data": { "shopLinks": "https://s.click.taobao.com/t?e=m%3D2%26s%3Dng4U0ceOgY8cQipKwQzePDAVflQIoZepyK8Cckff7TVRAdhuF14FMT4BllMe9acCxq3IhSJN6GQiOHPzqRNyYWMu07r%2BMqFT993NZchN8BKN5WQlUWaABEm4argXYs%2F4Ke3%2FbelnU7eOJ4hmg2sGJDMrRWVrG%2F%2BLUY%2FeOV%2BmC%2Fl5zZ2%2FKyHsZsvBfpBAMEs%2FWLcGHIlqvsnGJe8N%2FwNpGw%3D%3D&union_lens=lensId:TAPI@1605143774@2127f774_0746_175ba0646b2_463c@01", "longTpwd": "5.0f/u枝口~令¥fTZnclUYtg2¥打кǎItao~b或點几url链 https://m.tb.cn/h.4WVXPDz 至liulanqi【蓝月亮官方旗舰店】", "Tpwd": "¥fTZnclUYtg2¥" } }
{
"msg":"服务器错误",
"code":-1,
"time":1554365022200
}