生成短信模版构造信息
名称 | 类型 | 是否必须 | 示例值 | 更多限制 | 描述 |
---|---|---|---|---|---|
request_list | GeneralMsgTemplateRequest | 必须 | 请求参数列表 | ||
|
名称 | 类型 | 示例值 | 描述 |
---|---|---|---|
result | Result | 统一返回对象 | 统一返回对象 |
|
1 2 3 4 5 6 7 8 9 10 11 12 | TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret); OpencrmSmsSellerTplApplyRequest req = new OpencrmSmsSellerTplApplyRequest(); OpencrmSmsSellerTplApplyRequest.GeneralMsgTemplateRequest obj1 = new OpencrmSmsSellerTplApplyRequest.GeneralMsgTemplateRequest(); obj1.setExtArgs( "{ \"type\": 2, \"msgType\":2 }" ); obj1.setTemplateName( "测试模版" ); obj1.setConstSecretKey( "99F07284ED7D3A41D8596BF1BD2EC172" ); obj1.setConstParams( "" {\ "itemId\":1111,\"materialCode\":\"item\",\"page\":1,\"position\":1}" , "{\"title\":\"测试卡片红包标题\",\"content\":\"测试卡片红包内容\",\"materialCode\":\"text\",\"page\":1,\"position\":2}" "); obj1.setChannel( "card_smg" ); obj1.setChannelType( "5" ); req.setRequestList(obj1); OpencrmSmsSellerTplApplyResponse rsp = client.execute(req, sessionKey); System.out.println(rsp.getBody()); |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | < opencrm_sms_seller_tpl_apply_response > < result > < code >1001</ code > < msg >未知错误</ msg > < result > < ext_args >{\"itemUrl\":\"https://h5.m.taobao.com/awp/core/detail.htm?id=694988652671\"}</ ext_args > < construct >[{"materialCode":"item","canBeAlgoRec":true,"page":1,"position":1},{"materialCode":"text","page":1,"position":2}]</ construct > < channel_const_info >{\"pages\":[{\"tmpCards\":[{\"action\":{\"floorUrl\":\"https://s.tb.cn/cccc\",\"merchantName\":\"正在跳转淘宝APP\",\"packageName\":[\"com.taobao.taobao\"],\"target\":\"tbopen://m.taobao.com/tbopen/index.html?action=ali.open.nav&module=h5&bootImage=0&afcPromotionOpen=false&source=slk_dp&h5Url=https%3A%2F%2Fs.tb.cn%2F{#mediaSmsUrl#}\"},\"actionType\":\"OPEN_APP\",\"positionNumber\":1,\"src\":\"http://img.alicdn.com/bao/uploaded/i1/cccc.jpg\",\"srcType\":2,\"type\":\"IMAGE\"},{\"content\":\"CRM测试商品请不要拍5\",\"isTextTitle\":true,\"positionNumber\":2,\"type\":\"TEXT\"},{\"content\":\"测试单图文模板1125\",\"isTextTitle\":false,\"positionNumber\":3,\"type\":\"TEXT\"},{\"action\":{\"floorUrl\":\"https://s.tb.cn/cccccc\",\"merchantName\":\"正在跳转淘宝APP\",\"packageName\":[\"com.taobao.taobao\"],\"target\":\"tbopen://m.taobao.com/tbopen/index.html?action=ali.open.nav&module=h5&bootImage=0&afcPromotionOpen=false&source=slk_dp&h5Url=https%3A%2F%2Fs.tb.cn%2F{#mediaSmsUrl#}\"},\"actionType\":\"OPEN_APP\",\"content\":\"查看详情\",\"positionNumber\":4,\"type\":\"BUTTON\"}]}]}</ channel_const_info > < status >2</ status > < template_id >12345</ template_id > < template_name >测试模版</ template_name > < error_msg >错误信息</ error_msg > < channel >card_smg</ channel > < channel_type >5</ channel_type > </ result > </ result > </ opencrm_sms_seller_tpl_apply_response > |
1 2 3 4 5 6 | < error_response > < code >50</ code > < msg >Remote service error</ msg > < sub_code >isv.invalid-parameter</ sub_code > < sub_msg >非法参数</ sub_msg > </ error_response > |
错误码 | 错误描述 | 解决方案 |
---|