02 通过邮箱/手机获取用户信息
POST
/open-api/standard/v1/user/list/queryByEmailOrPhone
用户信息
请求参数
Header 参数
Access-token
string
必需
示例值:
711c4ceb-f0c6-4e3f-a112-ecc90f6c86c9
Token-type
string
必需
示例值:
bearer
Content-Type
string
必需
示例值:
application/json
x-asm-prefer-tag
string
可选
默认值:
version-env-07
Body 参数application/json
param
object
必需
emails
array[string]
邮箱列表(与手机号二选一)
phones
array[string]
手机列表(与邮箱二选一)
示例
{
"param": {
"emails": [
"xxx@tezign.com"
]
}
}
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://open-auth.tezign.com/open-api/standard/v1/user/list/queryByEmailOrPhone' \
--header 'Access-token: 711c4ceb-f0c6-4e3f-a112-ecc90f6c86c9' \
--header 'Token-type: bearer' \
--header 'x-asm-prefer-tag: version-env-07' \
--header 'Content-Type: application/json' \
--data-raw '{
"param": {
"emails": [
"xxx@tezign.com"
]
}
}'
返回响应
🟢200成功
application/json
Body
code
string
必需
message
string
必需
result
array [object {13}]
必需
id
integer
用户ID
email
string
用户邮箱
isExistPhone
boolean
是否存在手机号
nickname
null
用户名称
deptId
null
用户部门ID
deptName
null
部门名称
avatar
null
可选
verifyEmail
integer
可选
uid
null
可选
status
null
用户状态
logoutStatus
null
用户登录状态
userType
null
用户类型
createTime
null
创建时间
示例
{
"code": "string",
"message": "string",
"result": [
{
"id": 0,
"email": "string",
"isExistPhone": true,
"nickname": null,
"deptId": null,
"deptName": null,
"avatar": null,
"verifyEmail": 0,
"uid": null,
"status": null,
"logoutStatus": null,
"userType": null,
"createTime": null
}
]
}