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

taobao.tbk.dg.selfpurchase.intention.item.get (淘宝客-推广者-自购意向商品获取)

淘宝客-推广者-自购意向商品获取

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
biz_scene Number 必须 1 业务场景:1-弹窗 2-push 3-信息流 4-其他
type String 必须 special_id 用户标识的类型,支持special_id,relation_id,uvid
value String 必须 123123123 用户标识值
adzone_id Number 必须 123456 推广位id,mm_xx_xx_xx pid三段式中的第三段

响应参数

名称 类型 示例值 描述
data SelfPurchaseItemDTO data
  • └ value
  • String
  • 123123123
  • 用户标识值
  • item_dto
  • SelfPurchaseIntentItemDTO []
  • 商品列表
  • └ item_id
  • String
  • qeqscd1231-uqwenqe
  • 商品id
  • linkinfo_dto
  • SelfPurchaseLinkDTO
  • 转链结果
  • └ long_url
  • String
  • https://s.click.taobao.com/DvHjOPu
  • 二合一长链接
  • └ short_url
  • String
  • https://s.click.taobao.com/CvHjOPu
  • 二合一短链接
  • └ full_tpwd
  • String
  • 47¥ CZ3457 p7lYdesjTCG¥ https://m.tb.cn/h.UQ4ceEA 我的天呐麻酱爆肚粉香辣花甲粉重庆酸辣粉方便速食粉条六袋装
  • 二合一长口令
  • └ short_tpwd
  • String
  • ¥p7lYdesjTCG¥
  • 二合一短口令

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
TbkDgSelfpurchaseIntentionItemGetRequest req = new TbkDgSelfpurchaseIntentionItemGetRequest();
req.setBizScene(1L);
req.setType("special_id");
req.setValue("123123123");
req.setAdzoneId(123456L);
TbkDgSelfpurchaseIntentionItemGetResponse rsp = client.execute(req);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<tbk_dg_selfpurchase_intention_item_get_response>
    <data>
        <value>123123123</value>
        <item_dto>
            <self_purchase_intent_item_d_t_o>
                <item_id>qeqscd1231-uqwenqe</item_id>
                <linkinfo_dto>
                    <long_url>https://s.click.taobao.com/DvHjOPu</long_url>
                    <short_url>https://s.click.taobao.com/CvHjOPu</short_url>
                    <full_tpwd>47¥ CZ3457 p7lYdesjTCG¥ https://m.tb.cn/h.UQ4ceEA  我的天呐麻酱爆肚粉香辣花甲粉重庆酸辣粉方便速食粉条六袋装</full_tpwd>
                    <short_tpwd>¥p7lYdesjTCG¥</short_tpwd>
                </linkinfo_dto>
            </self_purchase_intent_item_d_t_o>
        </item_dto>
    </data>
</tbk_dg_selfpurchase_intention_item_get_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

返回
顶部