查询指定用户信息

GET /v1/api/user/ids?email={email}

指定用户ID查询用户信息。

Request Headers

Name Required Type Description
x-api-tenantId yes string 租户编号
x-api-token yes string 认证token
x-language no string 语言,zh-CN、en-US

Request Parameters

Name Required Type Description
email yes string 用户邮箱

Response

Name Type Description
result boolean 成功标识,返回true,表示请求成功,false表示请求失败
mcode string 错误码,成功时返回m00000,失败时返回对应的错误码,见文档默认错误码说明
data object 用户数据
message string 错误提示信息,部分错误码时有值
1、data数据类型
Name Type Description
userId long 用户ID
email string 邮箱

Example

请求示例

GET /v1/api/user/info?email=71

返回示例:成功

{
    "data": [
        {
            "email": "[email protected]",
            "userId": 71
        }
    ],
    "mcode": "m0000000",
    "result": true
}

返回示例:失败

{
    "mcode": "PUB_AUTH_0000007",
    "result": false
}

2. Error 错误处理

错误码表(Error Code)

mcode MessageBW_API_
BW_API_0000001 token为空
BW_API_0000003 无效租户ID
BW_API_0000004 未开通OPENAPI权限
-1 服务异常,请稍后再试

results matching ""

    No results matching ""