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

 

一、接口描述

1.接口名称:

/confopenapi/account/getUsersByEmailsMobiles

2.发送方式:

POST

3.参数格式:

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

 

二、输入参数

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

 

三、示例

1.传参示例

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

2.返回示例

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

 

四、返回参数

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

备注

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