文档中心 > API类目 > 互娱-用户中心API

alibaba.aligames.user.realname.querynew (灵犀互娱-用户中台-新用户实名制查询接口)

灵犀互娱-用户中台-新用户实名制查询接口

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
param_get_real_name_info_by_local_id_new_req_d_t_o GetRealNameInfoByLocalIdNewReqDTO 必须 参数
  • └ app_code
  • String
  • 可选
  • JIUYOU_ANDROID_SDK
  • 公参应用标识
  • └ app_id
  • String
  • 可选
  • ngsdk
  • aone应用id
  • └ biz_id
  • String
  • 可选
  • jiuyou
  • 租户
  • └ client_id
  • String
  • 可选
  • 17
  • 老用户中心端标识
  • └ is_desensitization
  • Boolean
  • 可选
  • false
  • 是否脱敏
  • └ local_id
  • String
  • 可选
  • 123123123
  • 唯一标识(九游uid、lid、交易猫uid、biubiu uid)等
  • └ request_id
  • String
  • 可选
  • 123123123
  • 请求唯一参数
  • └ timestamp
  • Number
  • 可选
  • 123123123123
  • 时间戳
  • └ uid_type
  • Number
  • 可选
  • 123123123
  • 1 常规uid类型账号,2设备类型账号

响应参数

名称 类型 示例值 描述
message String 账号不存在 错误信息描述。只有succ=false时必传
result_code String UID_NOT_FUND 错误信息码。只有succ=false时必传
data RealNameNewInfo 响应内容
  • └ uid
  • String
  • 11122211
  • 用户唯一id
  • └ age
  • Number
  • 18
  • 年龄
  • └ create_time
  • Date
  • 2024-10-01 00:00:00
  • 创建时间
  • └ full_name
  • String
  • 王xx
  • 姓名
  • └ id_number
  • String
  • 3211221xxx
  • 证件号
  • └ id_type
  • Number
  • 1
  • 证件类型
  • └ is_adult
  • Boolean
  • true
  • 是否成年
  • └ is_authing
  • Boolean
  • false
  • 是否认证中
  • └ is_real_person
  • Boolean
  • true
  • 是否已经实人打标
  • └ modify_time
  • Date
  • 2024-10-01 00:00:00
  • 更新时间
  • └ pi
  • String
  • 1ffsfffwee23223
  • 中宣pi值
  • └ rid
  • String
  • aaaaggggg
  • 证件标识id
  • └ status
  • Number
  • 状态
  • 0成功,其他为失败
req_id String a49nxls8mfjfdps4 唯一请求id
succ Boolean true 本次请求操作是否成功

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlibabaAligamesUserRealnameQuerynewRequest req = new AlibabaAligamesUserRealnameQuerynewRequest();
AlibabaAligamesUserRealnameQuerynewRequest.GetRealNameInfoByLocalIdNewReqDTO obj1 = new AlibabaAligamesUserRealnameQuerynewRequest.GetRealNameInfoByLocalIdNewReqDTO();
obj1.setAppCode("JIUYOU_ANDROID_SDK");
obj1.setAppId("ngsdk");
obj1.setBizId("jiuyou");
obj1.setClientId("17");
obj1.setIsDesensitization(false);
obj1.setLocalId("123123123");
obj1.setRequestId("123123123");
obj1.setTimestamp(123123123123L);
obj1.setUidType(123123123L);
req.setParamGetRealNameInfoByLocalIdNewReqDTO(obj1);
AlibabaAligamesUserRealnameQuerynewResponse rsp = client.execute(req);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<alibaba_aligames_user_realname_querynew_response>
    <message>账号不存在</message>
    <result_code>UID_NOT_FUND</result_code>
    <data>
        <uid>11122211</uid>
        <age>18</age>
        <create_time>2024-10-01 00:00:00</create_time>
        <full_name>王xx</full_name>
        <id_number>3211221xxx</id_number>
        <id_type>1</id_type>
        <is_adult>true</is_adult>
        <is_authing>false</is_authing>
        <is_real_person>true</is_real_person>
        <modify_time>2024-10-01 00:00:00</modify_time>
        <pi>1ffsfffwee23223</pi>
        <rid>aaaaggggg</rid>
        <status>状态</status>
    </data>
    <req_id>a49nxls8mfjfdps4</req_id>
    <succ>true</succ>
</alibaba_aligames_user_realname_querynew_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

返回
顶部