alibaba.passport.authcode.getbypwd (获取passport的authcode)

端类应用获取passport的authcode

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
appcode String 必须 aaaa passport签发的appcode
account String 必须 test 用户名
password String 必须 cyWiOVmvhA77PJ8Sju 加密后的密码
time String 必须 1380000000 服务器时间戳
sso_sign String 必须 cyWiOVmvhA77PJ8Sju 签名
result_wrap Boolean 可选 true
  • 默认值:true
  • 返回值是否包装

    响应参数

    名称 类型 示例值 描述
    result PojoResult 11 错误码
    • └ success
    • Boolean
    • true
    • 是否成功
    • └ error_code
    • Number
    • 1
    • 错误码
    • └ content
    • String
    • 1
    • authcode
    • └ error_msg
    • String
    • 返回信息
    • 返回信息
    • └ error_count
    • Number
    • 0
    • 错误次数

    请求示例

    • JAVA
    • .NET
    • PHP
    • CURL
    • Python
    • C/C++
    • NodeJS
    TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
    AlibabaPassportAuthcodeGetbypwdRequest req = new AlibabaPassportAuthcodeGetbypwdRequest();
    req.setAppcode("aaaa");
    req.setAccount("test");
    req.setPassword("cyWiOVmvhA77PJ8Sju");
    req.setTime("1380000000");
    req.setSsoSign("cyWiOVmvhA77PJ8Sju");
    req.setResultWrap(true);
    AlibabaPassportAuthcodeGetbypwdResponse rsp = client.execute(req);
    System.out.println(rsp.getBody());

    响应示例

    • XML示例
    • JSON示例
    <alibaba_passport_authcode_getbypwd_response>
        <result>
            <success>true</success>
            <error_code>1</error_code>
            <content>1</content>
            <error_msg>返回信息</error_msg>
            <error_count>0</error_count>
        </result>
    </alibaba_passport_authcode_getbypwd_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

    返回
    顶部