文档中心 > API类目 > 客户运营平台API

taobao.opencrm.strategy.template.list (查询策略模版)

查询商家可配置的策略模版

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述

响应参数

名称 类型 示例值 描述
result Result {} 接口返回model
  • model_list
  • TaskOpenDto []
  • []
  • 策略模版列表
  • └ attribute
  • String
  • {}
  • 模版使用规则
  • └ type
  • String
  • crowd
  • 模版类型:crowd:人群,event:事件
  • └ name
  • String
  • 批量下行测试模版
  • 模版名称
  • └ code
  • String
  • crowdTest
  • 模版code
  • └ msg
  • String
  • 当前商家不存在可执行模版
  • 错误描述
  • └ code
  • String
  • 1001
  • code
  • └ success
  • String
  • false
  • 是否成功

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
OpencrmStrategyTemplateListRequest req = new OpencrmStrategyTemplateListRequest();
OpencrmStrategyTemplateListResponse rsp = client.execute(req, sessionKey);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<opencrm_strategy_template_list_response>
    <result>
        <model_list>
            <task_open_dto>
                <attribute>{}</attribute>
                <type>crowd</type>
                <name>批量下行测试模版</name>
                <code>crowdTest</code>
            </task_open_dto>
        </model_list>
        <msg>当前商家不存在可执行模版</msg>
        <code>1001</code>
        <success>false</success>
    </result>
</opencrm_strategy_template_list_response>

异常示例

  • XML示例
  • JSON示例
<error_response>
    <code>50</code>
    <msg>Remote service error</msg>
    <sub_code>isv.invalid-parameter</sub_code>
    <sub_msg>非法参数</sub_msg>
</error_response>

错误码解释

错误码 错误描述 解决方案

API工具

如何获得此API

FAQ

返回
顶部