根据邮箱和手机号批量获取帐号信息接口

根据邮箱和手机号批量获取帐号信息接口

1. 接口描述

接口名称:

https://openapi.quanshi.com/confopenapi/account/getUsersByEmailsMobiles

发送方式:

POST

参数格式:

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

2. 输入参数

参数名 必选 类型 说明
token String 统一鉴权token 支持非token查询 (需要在http header提供AppKey, Nonce, CurTime, CheckSum )
emails []string 邮箱列表,最大支持200个
mobiles []string 手机号列表,最大支持200个

Http Headers

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

3. 示例

传参示例

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

返回示例

{
    "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"
}

4. 返回参数

参数名 类型 说明
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

备注

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