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

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

1.请求参数:

请求URL:

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

参数名 类型 必须 示例值 说明
appid String true uwkahf@jfs92 合作伙伴AppId
timestamp String true 1633618722 当前时间戳
tb_seller_nick String true kingdo 淘宝卖家店铺登录账号,非店铺名称
sign String true 999de41d862efaa6f1084ead3b3ba480 如何计算生成见示例代码
template_id Long true 3143214134 用户使用的标准模板id
sysid String false 100 可空, 代表不同的应用,具体请咨询客服

2. 请求示例代码(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);
    }

3. 返回结果

返回结果如下

{
    "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":""
}
}

4. 返回参数说明


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

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

文档更新时间: 2023-10-18 17:33   作者:admin