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

taobao.opencrm.ext.strategy.query (外投策略查询)

外投策略查询

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
ext_deliver_strategy_dto ExtDeliverStrategyDTO 可选 请求信息
  • └ page_size
  • Number
  • 可选
  • 10
  • 页面大小
  • └ page_no
  • Number
  • 可选
  • 1
  • 页码
  • └ node_inst_id
  • String
  • 可选
  • 123
  • 创建时节点实例id
  • └ strategy_id
  • Number
  • 可选
  • 123
  • 策略id

响应参数

名称 类型 示例值 描述
result ExtDeliverStrategyDTO [] 策略列表
  • └ strategy_id
  • Number
  • 123
  • 策略Id
  • └ name
  • String
  • 外投策略1
  • 策略名称
  • └ type
  • String
  • single
  • 类型
  • └ crowd_snapshot_id
  • Number
  • 123
  • 快照id
  • └ channel
  • String
  • 微信
  • 渠道
  • └ content
  • String
  • {"home":"home"}
  • 内容
  • └ start_date
  • Date
  • 2023-01-01 00:00:00
  • 开始时间
  • └ end_date
  • Date
  • 2023-02-01 00:00:00
  • 结束时间
  • └ target_link
  • String
  • https://shop.m.taobao.com/shop/shopIndex.htm?shop_id=58498856
  • 目标长链接
  • └ dp_link
  • String
  • https://shop.m.taobao.com/shop/shopIndex.htm?shop_id=58498856
  • dp链接
  • └ short_link
  • String
  • https://s.tb.cn/y6.qNDU5
  • 淘短链
  • └ x_code_img_url
  • String
  • https://img.alicdn.com/imgextra/*******-xcode.png
  • 二维码图片链接

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
OpencrmExtStrategyQueryRequest req = new OpencrmExtStrategyQueryRequest();
OpencrmExtStrategyQueryRequest.ExtDeliverStrategyDTO obj1 = new OpencrmExtStrategyQueryRequest.ExtDeliverStrategyDTO();
obj1.setPageSize(10L);
obj1.setPageNo(1L);
obj1.setNodeInstId("123");
obj1.setStrategyId(123L);
req.setExtDeliverStrategyDto(obj1);
OpencrmExtStrategyQueryResponse rsp = client.execute(req, sessionKey);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<opencrm_ext_strategy_query_response>
    <result>
        <ext_deliver_strategy_d_t_o>
            <strategy_id>123</strategy_id>
            <name>外投策略1</name>
            <type>single</type>
            <crowd_snapshot_id>123</crowd_snapshot_id>
            <channel>微信</channel>
            <content>{&quot;home&quot;:&quot;home&quot;}</content>
            <start_date>2023-01-01 00:00:00</start_date>
            <end_date>2023-02-01 00:00:00</end_date>
            <target_link>https://shop.m.taobao.com/shop/shopIndex.htm?shop_id=58498856</target_link>
            <dp_link>https://shop.m.taobao.com/shop/shopIndex.htm?shop_id=58498856</dp_link>
            <short_link>https://s.tb.cn/y6.qNDU5</short_link>
            <x_code_img_url>https://img.alicdn.com/imgextra/*******-xcode.png</x_code_img_url>
        </ext_deliver_strategy_d_t_o>
    </result>
</opencrm_ext_strategy_query_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

返回
顶部