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

alibaba.alsc.sales.adaptor.authtoken.get (饿了么开店免登token获取接口)

饿了么开店免登token获取接口

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
param_top_merchant_auth_request TopMerchantAuthRequest 可选 系统自动生成
  • └ keeper_id
  • String
  • 必须
  • 2000001
  • 饿了么keeper账号id
  • └ isv_shop_id
  • String
  • 必须
  • 10000001
  • isv门店id
  • └ alsc_clue_id
  • String
  • 必须
  • 20000001
  • 线索id

响应参数

名称 类型 示例值 描述
result SingleQueryResult 返回结果
  • └ error_code
  • String
  • 10001
  • 错误码
  • └ error_msg
  • String
  • 免登失败
  • 错误描述
  • └ success
  • Boolean
  • false
  • 是否成功
  • └ value
  • String
  • 121212121212121
  • 免登token

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlibabaAlscSalesAdaptorAuthtokenGetRequest req = new AlibabaAlscSalesAdaptorAuthtokenGetRequest();
AlibabaAlscSalesAdaptorAuthtokenGetRequest.TopMerchantAuthRequest obj1 = new AlibabaAlscSalesAdaptorAuthtokenGetRequest.TopMerchantAuthRequest();
obj1.setKeeperId("2000001");
obj1.setIsvShopId("10000001");
obj1.setAlscClueId("20000001");
req.setParamTopMerchantAuthRequest(obj1);
AlibabaAlscSalesAdaptorAuthtokenGetResponse rsp = client.execute(req);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<alibaba_alsc_sales_adaptor_authtoken_get_response>
    <result>
        <error_code>10001</error_code>
        <error_msg>免登失败</error_msg>
        <success>false</success>
        <value>121212121212121</value>
    </result>
</alibaba_alsc_sales_adaptor_authtoken_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

返回
顶部