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

alibaba.koubei.userprod.oauthcode (口碑用户oauthcode换uid接口)

口碑用户oauthcode换uid接口

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
param0 UserOauthcodeQueryRequest 可选 oauthCode查询请求
  • └ oauth_code
  • String
  • 可选
  • oauthCode
  • oauthCode
  • └ ext_info
  • String
  • 可选
  • {"a":"b"}
  • 扩展信息

响应参数

名称 类型 示例值 描述
result UserOauthCodeDTO 返回体
  • └ user_id
  • String
  • 2088
  • 用户id
  • └ user_type
  • String
  • alipay
  • 用户类型
hfs_success String true 是否成功
can_retry String true 是否可重试
error_message String 参数异常 错误描述
err_business_code String ILLEGAL_ARGUMENTS 错误码
trace_id String 123 traceId

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlibabaKoubeiUserprodOauthcodeRequest req = new AlibabaKoubeiUserprodOauthcodeRequest();
AlibabaKoubeiUserprodOauthcodeRequest.UserOauthcodeQueryRequest obj1 = new AlibabaKoubeiUserprodOauthcodeRequest.UserOauthcodeQueryRequest();
obj1.setOauthCode("oauthCode");
obj1.setExtInfo("{\"a\":\"b\"}");
req.setParam0(obj1);
AlibabaKoubeiUserprodOauthcodeResponse rsp = client.execute(req);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<alibaba_koubei_userprod_oauthcode_response>
    <result>
        <user_id>2088</user_id>
        <user_type>alipay</user_type>
    </result>
    <hfs_success>true</hfs_success>
    <can_retry>true</can_retry>
    <error_message>参数异常</error_message>
    <err_business_code>ILLEGAL_ARGUMENTS</err_business_code>
    <trace_id>123</trace_id>
</alibaba_koubei_userprod_oauthcode_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

返回
顶部