文档中心 > API类目 > 本地生活API

alibaba.alsc.waimai.foodchannel.shoplist.get (美食外卖频道小程序店铺查询接口)

美食外卖频道小程序店铺查询接口

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
food_channel_home_page_request FoodChannelHomePageRequest 可选 请求参数
  • └ activity_id
  • Number
  • 必须
  • 11968859
  • 会场id
  • └ limit
  • Number
  • 可选
  • 20
  • 分页大小
  • └ longitude
  • String
  • 必须
  • 121.31636
  • 经度
  • └ offset
  • Number
  • 可选
  • 0
  • 分页偏移量
  • └ support_template_codes
  • String []
  • 可选
  • cell_smart_sepecial_dish
  • 支持模板
  • └ latitude
  • String
  • 必须
  • 31.238825
  • 纬度
  • └ activity_tab_id
  • Number
  • 可选
  • 383083
  • 会场tabId
  • └ content_mark_info
  • String
  • 可选
  • {}
  • 金刚位透传参数
  • └ user_agent
  • String
  • 必须
  • xxx
  • ua

响应参数

名称 类型 示例值 描述
m_success Boolean true 是否成功
m_model Json {} 返回结果
m_msg_info String xxx 错误信息
m_msg_code String xxx 错误代码

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlibabaAlscWaimaiFoodchannelShoplistGetRequest req = new AlibabaAlscWaimaiFoodchannelShoplistGetRequest();
AlibabaAlscWaimaiFoodchannelShoplistGetRequest.FoodChannelHomePageRequest obj1 = new AlibabaAlscWaimaiFoodchannelShoplistGetRequest.FoodChannelHomePageRequest();
obj1.setActivityId(11968859L);
obj1.setLimit(20L);
obj1.setLongitude("121.31636");
obj1.setOffset(0L);
obj1.setSupportTemplateCodes("cell_smart_sepecial_dish");
obj1.setLatitude("31.238825");
obj1.setActivityTabId(383083L);
obj1.setContentMarkInfo("{}");
obj1.setUserAgent("xxx");
req.setFoodChannelHomePageRequest(obj1);
AlibabaAlscWaimaiFoodchannelShoplistGetResponse rsp = client.execute(req);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<alibaba_alsc_waimai_foodchannel_shoplist_get_response>
    <m_success>true</m_success>
    <m_model>{}</m_model>
    <m_msg_info>xxx</m_msg_info>
    <m_msg_code>xxx</m_msg_code>
</alibaba_alsc_waimai_foodchannel_shoplist_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

返回
顶部