Appearance
Query User Information
API Address:/v2/enduser/enterpriseapi/userInfo
Request Method:GET
Request Data Type:application/x-www-form-urlencoded
Response Data Type:*/*
API Description:Query user information
Request Parameters:
Parameter Name | Parameter Description | Request Type | Required | Data Type | Schema |
---|---|---|---|---|---|
uid | User ID | query | true | string |
Response Status:
Status Code | Description | Schema |
---|---|---|
200 | Successfully queried user info | Return registration code response data«User Information» |
5032 | Token verification failed | |
5041 | No permission | |
5065 | Please enter user ID | |
5106 | Please enter token |
Response Parameters:
Parameter Name | Parameter Description | Type | Schema |
---|---|---|---|
code | Response status code | integer(int32) | integer(int32) |
data | Response data | User Information | User Information |
address | Address | string | |
alipayUserId | Alipay user ID | string | |
appleUserId | Apple user ID | string | |
city | City | string | |
string | |||
facebookUserId | Facebook user ID | string | |
headimg | Profile picture | string | |
lang | Language | string | |
lastLoginTime | Last login time | integer(int64) | |
lastLoginTimeTs | integer(int64) | ||
logonMode | Registration method | integer(int32) | |
nationality | Country | string | |
nikeName | Nickname | string | |
phone | Phone number | string | |
province | Province | string | |
qqUserId | QQ user ID | string | |
registerTime | Registration time | integer(int64) | |
registerTimeTs | integer(int64) | ||
remark | Remark | string | |
sex | Gender | string | |
signature | Personal signature | string | |
status | Account status: 0-Disabled, 1-Normal | integer(int32) | |
timezone | Timezone | string | |
twitterUserId | Twitter user ID | string | |
uid | User ID | string | |
userDomain | User domain | string | |
wechatMiniprogramUserId | WeChat Mini Program user ID | string | |
wechatOffiaccountUserId | WeChat Official Account user ID | string | |
wechatUnionId | WeChat universal user ID | string | |
extMsg | Extended message | string | |
msg | Response message | string |
Response Example:
javascript
{
"code": 0,
"data": {
"address": "",
"alipayUserId": "",
"appleUserId": "",
"city": "",
"email": "",
"facebookUserId": "",
"headimg": "",
"lang": "",
"lastLoginTime": 0,
"lastLoginTimeTs": 0,
"logonMode": 0,
"nationality": "",
"nikeName": "",
"phone": "",
"province": "",
"qqUserId": "",
"registerTime": 0,
"registerTimeTs": 0,
"remark": "",
"sex": "",
"signature": "",
"status": 0,
"timezone": "",
"twitterUserId": "",
"uid": "",
"userDomain": "",
"wechatMiniprogramUserId": "",
"wechatOffiaccountUserId": "",
"wechatUnionId": ""
},
"extMsg": "",
"msg": ""
}