发送短信接口
名称 | 类型 | 是否必须 | 示例值 | 更多限制 | 描述 |
---|---|---|---|---|---|
task_content | ShortMessageDeliverTaskContent | 必须 | 任务内容 | ||
|
名称 | 类型 | 示例值 | 描述 |
---|---|---|---|
result | NodeExecuteReportDto | 非人群模式的发送报告 | |
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 | TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret); OpencrmSmsCrowdPostRequest req = new OpencrmSmsCrowdPostRequest(); OpencrmSmsCrowdPostRequest.ShortMessageDeliverTaskContent obj1 = new OpencrmSmsCrowdPostRequest.ShortMessageDeliverTaskContent(); obj1.setOutActivityId(1001L); obj1.setTplCode( "SMS_3385002" ); obj1.setTplPlh( "content" ); obj1.setSellerTpl( "亲爱的${nick},兜家年货清仓五折起咯!爆款超低折扣,领券再减折上折,更有满返优惠券等你拿!就一个字:值!赶紧加购吧!" ); obj1.setDeliverTargets( "" 18600238902 "," 18600238920 "" ); obj1.setOutNodeInstId(4001L); obj1.setOutActivityInstId(2001L); obj1.setCrowdMode( true ); obj1.setOutNodeId(3001L); obj1.setCrowdInstId(6001L); obj1.setSignature( "jinse01官方旗舰店" ); obj1.setPlhVal( "{\"nick\":\"jinse01\",\"point\":\"10\",\"levelName\":\"普通会员\",\"shortLink\":\"c.tb.cn/c.Kgsf\"}" ); obj1.setMsgType(1L); obj1.setMobileAcquisitionRule( "3,1,2" ); obj1.setTemplateId( "111111111111" ); req.setTaskContent(obj1); OpencrmSmsCrowdPostResponse 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 18 19 | < opencrm_sms_crowd_post_response > < result > < coupon_un_use_count >1000</ coupon_un_use_count > < coupon_used_count >200</ coupon_used_count > < coupon_using_count >800</ coupon_using_count > < fail_bill_count >40</ fail_bill_count > < fail_count >20</ fail_count > < fail_statistics >{}</ fail_statistics > < limited_count >5</ limited_count > < node_inst_id >4001</ node_inst_id > < short_link_click_pv >1000</ short_link_click_pv > < short_link_click_uv >500</ short_link_click_uv > < success_bill_count >200</ success_bill_count > < success_count >100</ success_count > < total_count >1000</ total_count > < unknown_status_bill_count >20</ unknown_status_bill_count > < unknown_status_count >10</ unknown_status_count > </ result > </ opencrm_sms_crowd_post_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 > |
错误码 | 错误描述 | 解决方案 |
---|