跳转到内容
返回官网

获取商家的自定义区模板信息

获取商家的自定义区的模板信息

一、请求参数

请求URL:

POST https://kf.fw199.com/gateway/taobao/cainiao/cloudprint/customares/get

参数名类型必须示例值说明
appidStringtrueuwkahf@jfs92合作伙伴AppId
timestampStringtrue1633618722当前时间戳
tb_seller_nickStringtruekingdo淘宝卖家店铺登录账号,非店铺名称
signStringtrue999de41d862efaa6f1084ead3b3ba480如何计算生成见示例代码
template_idLongtrue3143214134用户使用的标准模板id
sysidStringfalse100可空, 代表不同的应用,具体请咨询客服

二、请求示例代码

Java

@Test
public void TaoBaoCaiNiaoCloudprintCustomeraresGet() throws Exception {
String tb_seller_nick = Config.TBSellerNick ;
Map<String, String> data = new HashMap<String, String>();
data.put("appid", Config.AppId);
// data.put("sysid", "103"); // 代表不同的应用,具体请咨询客服
data.put("tb_seller_nick", tb_seller_nick);
Long timestamp = System.currentTimeMillis() / 1000;
data.put("timestamp", timestamp.toString());
data.put("template_id", "16282123");
data.put("sign", Utils.Sign(data,Config.AppSecret));
// 调用服务API
String resp = doHttpRequest(Config.TaoBaoCaiNiaoCloudprintCustomeraresGetUrl, data);
System.out.println(resp);
}

三、返回结果

返回结果如下

{
"code":0,
"message":"ok",
"data":{
"request_id":"16mq6ct9vyqjb",
"result":{
"datas":{
"custom_area_result":[
{
"custom_area_id":19790835,
"custom_area_url":"https://cloudprint.cainiao.com/template/customArea/19790835/2",
"keys":{
}
}
]
},
"error_code":"0",
"success":true
}
},
"trace_id":""
}
}

四、返回参数说明

m_3cb2dc4bf3caad3358b168d7a5bc5889_r_2797733

说明: code为0表示成功,非0为失败,message会包含失败原因。

对应淘宝 https://open.taobao.com/api.htm?docId=26800&docType=2&source=search