根据个人信息获取帐号信息接口

根据个人信息获取帐号信息接口

1. 接口描述

接口名称:

/confopenapi/account/getUsersByEmailsMobiles

发送方式:

POST

参数格式:

accept: application/json;content-type: application/json

2. 输入参数

Http Headers(没有获得鉴权token时)

参数 类型 必须 说明
AppId String 开发者平台分配的AppId
Nonce String 随机数(随机数,最大长度128个字符)
CurTime String 当前UTC时间戳,从1970年1月1日0点0分0秒开始到现在的毫秒数
CheckSum String 服务器认证需要,16进制字符小写SHA1(SecretKey+Nonce+CurTime),SecretKey由开发者平台分配

Http Header(获得鉴权token时)

参数名 必选 类型 说明
token 接口调用鉴权参数 也可以放在http body中

Http Body

参数名 必选 类型 说明
emails []string 邮箱列表,最大支持200个
mobiles []string 手机号列表,最大支持200个

请求示例

传参示例

{
    "emails": ["20190918test5@quanshitest.com"],
    "mobiles": []
}

3. 返回参数

参数名 类型 说明
status int 0:成功,非0失败
result object 查询结果,map形式,key为传参中的邮箱或者手机号
userId int 查询账号对应的用户ID
loginName string 查询账号对应的登录名
email string 查询账号对应的邮箱
countryCode string 查询账号对应的手机号的国家码
customerCode string 查询账号对应的客户编码
customerCode string 查询账号对应的客户编码
companyName string 查询账号对应的公司名称
firstName string 查询账号对应的firstName
middleName string 查询账号对应的middleName
lastName string 查询账号对应的lastName

返回示例

{
    "status": 0,
    "result": {
        "15950095725": {
            "userId": 63111959,
            "loginName": "475229890@qq.com",
            "email": "475229890@qq.com",
            "countryCode": "86",
            "mobile": "15950095725",
            "customerCode": "020880",
            "companyName": "",
            "displayName": "",
            "firstName": "",
            "middleName": "",
            "lastName": "Rock"
        },
        "20190918test5@quanshitest.com": {
            "userId": 81586150,
            "loginName": "20190918test5@quanshitest.com",
            "email": "20190918test5@quanshitest.com",
            "countryCode": "86",
            "mobile": "20190918005",
            "customerCode": "020880",
            "companyName": "",
            "displayName": "20190918test5",
            "firstName": "",
            "middleName": "",
            "lastName": "20190918test5"
        }
    },
    "request_id": "confopenapiserver-192.168.0.188-1627277897.307398000.81",
    "reqid": "confopenapiserver-192.168.0.188-1627277897.307398000.81",
    "timestamp": 1627277897307,
    "content_type": "application/json",
    "request_duration": "880.744438ms"
}

备注

  • 更多返回错误代码请看首页的错误代码描述