aliexpress.member.oauth.authorize (oauth授权)

该开放接口使用OK的authCode 映射到AE账号上进行Top平台的授权操作

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
response_type String 可选 code response type
sns_authorization_code String 可选 afjaodfjaojdfoajdfioa sns auth code
sns_type String 可选 ok sns type
auto_register Boolean 可选 true
  • 默认值:true
  • auto register or not

    响应参数

    名称 类型 示例值 描述
    result Result result response
    • return_object
    • AuthToken
    • return_object
    • └ authorization_code
    • String
    • aliexpress auth code
    • └ code
    • Number
    • 0
    • code
    • └ code_info
    • String
    • success
    • code info

    请求示例

    • JAVA
    • .NET
    • PHP
    • CURL
    • Python
    • C/C++
    • NodeJS
    TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
    AliexpressMemberOauthAuthorizeRequest req = new AliexpressMemberOauthAuthorizeRequest();
    req.setResponseType("code");
    req.setSnsAuthorizationCode("afjaodfjaojdfoajdfioa");
    req.setSnsType("ok");
    req.setAutoRegister(true);
    AliexpressMemberOauthAuthorizeResponse rsp = client.execute(req);
    System.out.println(rsp.getBody());

    响应示例

    • XML示例
    • JSON示例
    <aliexpress_member_oauth_authorize_response>
        <result>
            <return_object>
                <authorization_code></authorization_code>
            </return_object>
            <code>0</code>
            <code_info>success</code_info>
        </result>
    </aliexpress_member_oauth_authorize_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

    返回
    顶部