文档中心 > API类目 > 本地生活联盟平台-饿了么单店推广API

alibaba.alsc.union.eleme.promotion.otherchannel.get (本地联盟饿了么推广其他推广链接获取,抖音等)

本地联盟饿了么推广其他推广链接获取,抖音等

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
other_promotion_link_request OtherPromotionLinkRequest 必须 查询request对象
  • └ type
  • Number
  • 必须
  • 1
  • 链接类型 1 抖音schema
  • └ sid
  • String
  • 必须
  • 11111
  • 用户扩展id

响应参数

名称 类型 示例值 描述
data OtherPromotionLink 特殊推广链接
  • └ dy_schema
  • String
  • sslocal://miniapp?xxxx
  • 抖音内部跳转shcema地址,30天有效
  • └ dy_link
  • String
  • https://z.douyin.com/xxxx
  • 抖音外部唤起链接,30天有效
result_code Number 0 请求结果码
message String success 返回描述

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlibabaAlscUnionElemePromotionOtherchannelGetRequest req = new AlibabaAlscUnionElemePromotionOtherchannelGetRequest();
AlibabaAlscUnionElemePromotionOtherchannelGetRequest.OtherPromotionLinkRequest obj1 = new AlibabaAlscUnionElemePromotionOtherchannelGetRequest.OtherPromotionLinkRequest();
obj1.setType(1L);
obj1.setSid("11111");
req.setOtherPromotionLinkRequest(obj1);
AlibabaAlscUnionElemePromotionOtherchannelGetResponse rsp = client.execute(req);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<alibaba_alsc_union_eleme_promotion_otherchannel_get_response>
    <data>
        <dy_schema>sslocal://miniapp?xxxx</dy_schema>
        <dy_link>https://z.douyin.com/xxxx</dy_link>
    </data>
    <result_code>0</result_code>
    <message>success</message>
</alibaba_alsc_union_eleme_promotion_otherchannel_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

返回
顶部