Appearance
Query User Information
Interface Address:/v2/enduser/enduserapi/userInfo
Request Method:GET
Request Data Type:application/x-www-form-urlencoded
Response Data Type:*/*
Interface Description:Query User Information
Request Parameters:
None
Response Status:
Status Code | Description | schema |
---|---|---|
200 | Successfully queried user information, returns user info in data | Registration code response data«User Info» |
5032 | Token verification failed | |
5033 | User does not exist | |
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 Info | User Info |
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 | Remarks | string | |
sex | Gender | string | |
signature | Personal signature | string | |
status | Account status: 0 Disabled 1 Normal | integer(int32) | |
timezone | Time zone | string | |
twitterUserId | Twitter user ID | string | |
uid | User ID | 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": "",
"wechatMiniprogramUserId": "",
"wechatOffiaccountUserId": "",
"wechatUnionId": ""
},
"extMsg": "",
"msg": ""
}