文档中心 > API类目 > 淘宝客API

taobao.tbk.sc.action.plan.spout (淘宝客-服务商-推广计划)

淘宝客-服务商-推广计划

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
target_identity String 必须 身份唯一标识 身份唯一标识
plan_id String 可选 0
  • 默认值:0
  • 计划ID
    params SfPlanQueryParams 可选 其它入参
    • tao_token_list
    • LkMaterialDTO []
    • 可选
    • 口令列表
    • └ tao_token
    • String
    • 可选
    • 4$4Hmq4uVtzV9$:// CZ6135
    • 推广口令

    响应参数

    名称 类型 示例值 描述
    data SfPlanDetailDTO TbkLinkDTO 计划内容
    • plan_detail
    • SfActionDTO []
    • 计划列表
    • └ action_id
    • String
    • 8$nKVv4uVCyk7$:// CZ6135
    • 操作唯一标识
    • └ action_x_info
    • String
    • 4$4Hmq4uVtzV9$:// CZ6135
    • 操作内容
    • action_extend
    • ActionExtendDTO
    • 操作扩展信息
    • └ error_code
    • Number
    • 1001
    • 操作对应错误码(仅失败时有值)
    • └ error_msg
    • String
    • 未查询到商品
    • 操作对应错误描述(仅失败时有值)
    • └ plan_id
    • String
    • 0
    • 计划ID
    • └ plan_name
    • String
    • 口令推广
    • 计划名称
    biz_error_desc String 1 见错误码描述

    请求示例

    • JAVA
    • .NET
    • PHP
    • CURL
    • Python
    • C/C++
    • NodeJS
    TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
    TbkScActionPlanSpoutRequest req = new TbkScActionPlanSpoutRequest();
    req.setTargetIdentity("身份唯一标识");
    req.setPlanId("0");
    TbkScActionPlanSpoutRequest.SfPlanQueryParams obj1 = new TbkScActionPlanSpoutRequest.SfPlanQueryParams();
    List<TbkScActionPlanSpoutRequest.LkMaterialDTO> list3 = new ArrayList<TbkScActionPlanSpoutRequest.LkMaterialDTO>();
    TbkScActionPlanSpoutRequest.LkMaterialDTO obj4 = new TbkScActionPlanSpoutRequest.LkMaterialDTO();
    list3.add(obj4);
    obj4.setTaoToken("4$4Hmq4uVtzV9$:// CZ6135");
    obj1.setTaoTokenList(list3);
    req.setParams(obj1);
    TbkScActionPlanSpoutResponse rsp = client.execute(req, sessionKey);
    System.out.println(rsp.getBody());

    响应示例

    • XML示例
    • JSON示例
    <tbk_sc_action_plan_spout_response>
        <data>
            <plan_detail>
                <sf_action_d_t_o>
                    <action_id>8$nKVv4uVCyk7$:// CZ6135</action_id>
                    <action_x_info>4$4Hmq4uVtzV9$:// CZ6135</action_x_info>
                    <action_extend>
                        <error_code>1001</error_code>
                        <error_msg>未查询到商品</error_msg>
                    </action_extend>
                </sf_action_d_t_o>
            </plan_detail>
            <plan_id>0</plan_id>
            <plan_name>口令推广</plan_name>
        </data>
        <biz_error_desc>1</biz_error_desc>
    </tbk_sc_action_plan_spout_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

    返回
    顶部