文档中心 > API类目 > 智能设备

taobao.ailab.aicloud.top.auth.get (登陆)

登陆

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
user_id String 必须 13911112222 用户ID,此处传入第三方账户体系的用户id
utd_id String 必须 V944n0HrnZ4DAAtOStvvDat7 用户设备唯一识别码,长度限制32以内,建议使用系统接口获取deviceid,然后做一定的混淆处理来作为此输入参数
schema String 必须 36653b6e-f41a-11e6-bc64-92361f002671 账户体系隔离
app_type String 必须 IOS app类型

响应参数

名称 类型 示例值 描述
result AiCloudResult 结果 result
  • └ auth_info
  • String
  • {\"model\":{\"isAuthenticated\":false,\"accessToken\":\"ce0ofoQ41I85YJCDLzuAkgPzjsI0XiwdMF30blmqxHs/PkXMravx+CVqxhHja212Q7H980f6pV0\u003d\",\"isTempUser\":true,\"isNew\":false,\"userId\":\"83790\",\"deviceIds\":[],\"utdId\":\"V944n0HrnZ4DAAtOStvvDat7\"},\"msgCode\":\"SUCCESS\",\"msgInfo\":\"成功\",\"success\":true}
  • auth信息
  • └ msg_info
  • String
  • 参数不可用
  • msgInfo错误码信息,成功返回null
  • └ is_success
  • Boolean
  • true
  • 是否操作成功

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AilabAicloudTopAuthGetRequest req = new AilabAicloudTopAuthGetRequest();
req.setUserId("13911112222");
req.setUtdId("V944n0HrnZ4DAAtOStvvDat7");
req.setSchema("36653b6e-f41a-11e6-bc64-92361f002671");
req.setAppType("IOS");
AilabAicloudTopAuthGetResponse rsp = client.execute(req);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<ailab_aicloud_top_auth_get_response>
    <result>
        <auth_info>{\&quot;model\&quot;:{\&quot;isAuthenticated\&quot;:false,\&quot;accessToken\&quot;:\&quot;ce0ofoQ41I85YJCDLzuAkgPzjsI0XiwdMF30blmqxHs/PkXMravx+CVqxhHja212Q7H980f6pV0\u003d\&quot;,\&quot;isTempUser\&quot;:true,\&quot;isNew\&quot;:false,\&quot;userId\&quot;:\&quot;83790\&quot;,\&quot;deviceIds\&quot;:[],\&quot;utdId\&quot;:\&quot;V944n0HrnZ4DAAtOStvvDat7\&quot;},\&quot;msgCode\&quot;:\&quot;SUCCESS\&quot;,\&quot;msgInfo\&quot;:\&quot;成功\&quot;,\&quot;success\&quot;:true}</auth_info>
        <msg_info>参数不可用</msg_info>
        <is_success>true</is_success>
    </result>
</ailab_aicloud_top_auth_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

返回
顶部