外投策略管理。效果数据请用接口:taobao.crm.index.effect.data.get
名称 | 类型 | 是否必须 | 示例值 | 更多限制 | 描述 |
---|---|---|---|---|---|
ext_deliver_strategy_dto | ExtDeliverStrategyDTO | 可选 | 请求参数 | ||
|
|||||
opt | String | 可选 | create | create:创建/delete:删除 |
名称 | 类型 | 示例值 | 描述 |
---|---|---|---|
result | ExtDeliverStrategyDTO | 返回参数 | |
|
|||
result_msg | String | 参数异常 | 错误信息 |
result_code | String | 10001 | 错误码 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret); OpencrmExtStrategyOperationRequest req = new OpencrmExtStrategyOperationRequest(); OpencrmExtStrategyOperationRequest.ExtDeliverStrategyDTO obj1 = new OpencrmExtStrategyOperationRequest.ExtDeliverStrategyDTO(); obj1.setEndDate(StringUtils.parseDateTime( "2023-02-01 00:00:00" )); obj1.setChannel( "1" ); obj1.setCrowdSnapshotId(123L); obj1.setType( "single" ); obj1.setContent( "{\"home\":\"home\"}" ); obj1.setNodeInstId( "123456" ); obj1.setName( "外投策略1" ); obj1.setStrategyId(123456L); obj1.setStartDate(StringUtils.parseDateTime( "2023-01-01 00:00:00" )); req.setExtDeliverStrategyDto(obj1); req.setOpt( "create" ); OpencrmExtStrategyOperationResponse rsp = client.execute(req, sessionKey); System.out.println(rsp.getBody()); |
1 2 3 4 5 6 7 8 9 10 11 12 | < opencrm_ext_strategy_operation_response > < result > < strategy_id >123</ strategy_id > < tao_pass_word >Mzjwn**********Kb0F6UzLwn5SQIGh0dHBzOi8vbS50Yi5jbi9oLlVCZWxzTWUgIENaMzQ1NyDlpJbmipXnrZbnlaUx</ tao_pass_word > </ result > < result_msg >参数异常</ result_msg > < result_code >10001</ result_code > </ opencrm_ext_strategy_operation_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 > |
错误码 | 错误描述 | 解决方案 |
---|