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

alibaba.alsc.union.eleme.promotion.officialactivity.get (本地联盟饿了么推广官方活动查询)

本地联盟饿了么推广官方活动查询

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
query_request ActivityRequest 必须 查询rquest
  • └ pid
  • String
  • 必须
  • alsc_xxx_xxx_xxx
  • 渠道PID
  • └ activity_id
  • String
  • 必须
  • 1
  • 活动ID
  • └ sid
  • String
  • 可选
  • 1111
  • 三方会员id。长度限制50
  • └ include_wx_img
  • Boolean
  • 可选
  • true
  • 【废弃】
  • └ include_qr_code
  • Boolean
  • 可选
  • false
  • 是否返回二维码
  • └ include_image
  • Boolean
  • 可选
  • false
  • 是否返回图片
  • └ include_watchword
  • Boolean
  • 可选
  • true
  • 是否返回密令

响应参数

名称 类型 示例值 描述
data ActivityPromotionDto {} 活动数据
  • └ id
  • String
  • 10124
  • 活动ID
  • └ title
  • String
  • 饿了么xxx
  • 标题
  • └ description
  • String
  • 下单xxxxx
  • 描述
  • └ picture
  • String
  • https://xxxxx
  • 活动创意图片
  • └ start_time
  • Number
  • 1638374400
  • 起始时间(秒)
  • └ end_time
  • Number
  • 1673107200
  • 结束时间(秒)
  • link
  • PromotionLink
  • 推广链接
  • └ wx_appid
  • String
  • wxxxxxxxx
  • 小程序appId
  • └ wx_path
  • String
  • xxxxx
  • 微信小程序path链接
  • └ picture
  • String
  • xxx
  • 推广图片地址
  • └ alipay_mini_url
  • String
  • alipays://platformapi/xxxx/xxx
  • 支付宝小程序推广链接
  • └ h5_url
  • String
  • https://tb.ele.me/wow/ixxxx/xxxx
  • h5推广地址
  • └ tb_qr_code
  • String
  • https://gw.alicdn.com/imgextra/xxxx
  • 淘宝二维码图片地址
  • └ mini_qrcode
  • String
  • https://gw.alicdn.com/imgextra/xxxx
  • 微信独立二维码
  • └ tb_mini_qrcode
  • String
  • https://gw.alicdn.com/imgextra/xxxx
  • 淘宝独立二维码
  • └ ele_scheme_url
  • String
  • https://tb.ele.me/wow/alsc/mod/c1474c7db25accb9axxxxxx
  • 饿了么唤端链接
  • └ h5_short_link
  • String
  • xxxx
  • h5推广地址短链
  • └ h5_mini_qrcode
  • String
  • https://gw.alicdn.com/imgextra/xxxx
  • H5二维码图片地址
  • └ eleme_word
  • String
  • xxx
  • 饿了么口令(有效期30天,建议到期前重新获取)
  • └ tb_scheme_url
  • String
  • tbopen://m.taobao.com/xxx
  • 淘宝唤端链接
  • └ taobao_word
  • String
  • xxxxx
  • 淘口令(有效期30天,建议到期前重新获取)
  • └ full_taobao_word
  • String
  • xxxxx
  • 带文案淘口令(有效期30天,建议到期前重新获取)
  • h5_promotion
  • TopH5PromotionDto
  • {}
  • 推广链接
  • └ h5_url
  • String
  • http://xxx
  • 长连接
  • └ short_link
  • String
  • http://xxx
  • 短连接
  • └ h5_qr_code
  • String
  • http://xxx
  • 推广二维码
  • └ h5_img_url
  • String
  • http://xxx
  • 推广海报
  • └ tj_h5_url
  • String
  • http://xxx
  • 推荐有奖拉新链接
  • taobao_promotion
  • TopTaobaoPromotionDto
  • {}
  • 淘宝链接
  • └ h5_url
  • String
  • http://xxx
  • 推广链接
  • └ h5_short_url
  • String
  • http://xxx
  • 短连接
  • └ tb_qr_code
  • String
  • http://xxx
  • 二维码
  • └ img_url
  • String
  • http://xxx
  • 海报
  • └ app_id
  • String
  • 22xxa
  • appid
  • └ app_path
  • String
  • bdlm/pages
  • apppath
  • └ scheme_url
  • String
  • tbopen://m.taobao.com/tb
  • schemeurl
  • wx_promotion
  • TopWxPromotionDto
  • {}
  • 微信链接
  • └ wx_app_id
  • String
  • 123
  • appid
  • └ wx_path
  • String
  • bdlm/pages/guide/index?
  • apppath
  • └ wx_qr_code
  • String
  • http://xxx
  • 二维码
  • └ img_url
  • String
  • http://xxx
  • 海报
  • └ reduce_wx_app_id
  • String
  • 123
  • 立减的appid
  • └ reduce_wx_path
  • String
  • bdlm/pages/guide/index?
  • 立减的apppath
  • └ reduce_wx_qr_code
  • String
  • http://xxx
  • 立减的二维码
  • └ reduce_img_url
  • String
  • http://xxx
  • 立减的海报
  • └ h5_short_link
  • String
  • http://xxx
  • h5短链
  • └ market_wx_app_id
  • String
  • 1232
  • 媒体出资appid
  • └ market_wx_app_path
  • String
  • bdlm/pages/guide/index?
  • 媒体出资apppath
  • alipay_promotion
  • TopAlipayPromotionDto
  • {}
  • 支付宝链接
  • └ app_id
  • String
  • 23a
  • appId
  • └ app_path
  • String
  • bdlm/pages/guide/xx
  • appPath
  • └ alipay_scheme_url
  • String
  • alipays://platformapi/star
  • scheme唤端地址
  • └ h5_url
  • String
  • http://xxx
  • h5地址
  • └ alipay_watchword
  • String
  • 23a
  • 支付宝口令
  • └ alipay_watchword_suggest
  • String
  • dafdsa2
  • 支付宝完整口令
  • └ img_url
  • String
  • http://xxx
  • 海报地址
  • └ alipay_qr_code
  • String
  • http://xxx
  • 二维码地址
  • └ short_link
  • String
  • http://xxx
  • h5短连接
  • app_promotion
  • TopAppPromotionDto
  • {}
  • app链接
  • └ deep_link
  • String
  • //deeplink
  • deeplink地址
  • └ eleme_word
  • String
  • a2d
  • 饿口令
  • └ word_valid_date
  • String
  • 1792222
  • 饿口令有效期
result_code Number 0 返回码
message String success 返回消息

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlibabaAlscUnionElemePromotionOfficialactivityGetRequest req = new AlibabaAlscUnionElemePromotionOfficialactivityGetRequest();
AlibabaAlscUnionElemePromotionOfficialactivityGetRequest.ActivityRequest obj1 = new AlibabaAlscUnionElemePromotionOfficialactivityGetRequest.ActivityRequest();
obj1.setPid("alsc_xxx_xxx_xxx");
obj1.setActivityId("1");
obj1.setSid("1111");
obj1.setIncludeWxImg(true);
obj1.setIncludeQrCode(false);
obj1.setIncludeImage(false);
obj1.setIncludeWatchword(true);
req.setQueryRequest(obj1);
AlibabaAlscUnionElemePromotionOfficialactivityGetResponse rsp = client.execute(req);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<alibaba_alsc_union_eleme_promotion_officialactivity_get_response>
    <data>
        <id>10124</id>
        <title>饿了么xxx</title>
        <description>下单xxxxx</description>
        <picture>https://xxxxx</picture>
        <start_time>1638374400</start_time>
        <end_time>1673107200</end_time>
        <link>
            <wx_appid>wxxxxxxxx</wx_appid>
            <wx_path>xxxxx</wx_path>
            <picture>xxx</picture>
            <alipay_mini_url>alipays://platformapi/xxxx/xxx</alipay_mini_url>
            <h5_url>https://tb.ele.me/wow/ixxxx/xxxx</h5_url>
            <tb_qr_code>https://gw.alicdn.com/imgextra/xxxx</tb_qr_code>
            <mini_qrcode>https://gw.alicdn.com/imgextra/xxxx</mini_qrcode>
            <tb_mini_qrcode>https://gw.alicdn.com/imgextra/xxxx</tb_mini_qrcode>
            <ele_scheme_url>https://tb.ele.me/wow/alsc/mod/c1474c7db25accb9axxxxxx</ele_scheme_url>
            <h5_short_link>xxxx</h5_short_link>
            <h5_mini_qrcode>https://gw.alicdn.com/imgextra/xxxx</h5_mini_qrcode>
            <eleme_word>xxx</eleme_word>
            <tb_scheme_url>tbopen://m.taobao.com/xxx</tb_scheme_url>
            <taobao_word>xxxxx</taobao_word>
            <full_taobao_word>xxxxx</full_taobao_word>
            <h5_promotion>
                <h5_url>http://xxx</h5_url>
                <short_link>http://xxx</short_link>
                <h5_qr_code>http://xxx</h5_qr_code>
                <h5_img_url>http://xxx</h5_img_url>
                <tj_h5_url>http://xxx</tj_h5_url>
            </h5_promotion>
            <taobao_promotion>
                <h5_url>http://xxx</h5_url>
                <h5_short_url>http://xxx</h5_short_url>
                <tb_qr_code>http://xxx</tb_qr_code>
                <img_url>http://xxx</img_url>
                <app_id>22xxa</app_id>
                <app_path>bdlm/pages</app_path>
                <scheme_url>tbopen://m.taobao.com/tb</scheme_url>
            </taobao_promotion>
            <wx_promotion>
                <wx_app_id>123</wx_app_id>
                <wx_path>bdlm/pages/guide/index?</wx_path>
                <wx_qr_code>http://xxx</wx_qr_code>
                <img_url>http://xxx</img_url>
                <reduce_wx_app_id>123</reduce_wx_app_id>
                <reduce_wx_path>bdlm/pages/guide/index?</reduce_wx_path>
                <reduce_wx_qr_code>http://xxx</reduce_wx_qr_code>
                <reduce_img_url>http://xxx</reduce_img_url>
                <h5_short_link>http://xxx</h5_short_link>
                <market_wx_app_id>1232</market_wx_app_id>
                <market_wx_app_path>bdlm/pages/guide/index?</market_wx_app_path>
            </wx_promotion>
            <alipay_promotion>
                <app_id>23a</app_id>
                <app_path>bdlm/pages/guide/xx</app_path>
                <alipay_scheme_url>alipays://platformapi/star</alipay_scheme_url>
                <h5_url>http://xxx</h5_url>
                <alipay_watchword>23a</alipay_watchword>
                <alipay_watchword_suggest>dafdsa2</alipay_watchword_suggest>
                <img_url>http://xxx</img_url>
                <alipay_qr_code>http://xxx</alipay_qr_code>
                <short_link>http://xxx</short_link>
            </alipay_promotion>
            <app_promotion>
                <deep_link>//deeplink</deep_link>
                <eleme_word>a2d</eleme_word>
                <word_valid_date>1792222</word_valid_date>
            </app_promotion>
        </link>
    </data>
    <result_code>0</result_code>
    <message>success</message>
</alibaba_alsc_union_eleme_promotion_officialactivity_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

返回
顶部