# 获取用户信息
获取当前登录用户信息。
# 请求
GET https://account.glodon.com/v3/api/userinfo
1
# header 参数
参数名 | 参数值 | 必选 | 类型 | 描述 |
---|---|---|---|---|
Authorization | Bearer ${your_access_token: cn-***************} | 是 | String | 获取AccessToken |
# 响应
HTTP 代码 | code | message(中文/英文) | 说明 |
---|---|---|---|
200 | 0 | 操作成功/ok | 成功请求 |
11600 | accessToken无效/access.token.invalid |
# HTTP 请求示例
curl --request GET 'https://account.glodon.com/v3/api/userinfo' \
--header 'Authorization: Bearer cn-c4e7bae******************018058' \
1
2
2
# 成功返回结果
{
"code": 0,
"message": "操作成功",
"data": {
"id": 642***************4453,
"fullname": "summer",
"username": "summer",
"email": "summer@glodon.com",
"mobile": "138****8888",
"globalId": "642***************4453",
"gender": "m",
"birthday": "2017-07-19",
"qq": "33333333",
"company": "工作单位",
"avatarPath": [
"https://account.glodon.com/avatar/show/642***************4453/32",
"https://account.glodon.com/avatar/show/642***************4453/48",
"https://account.glodon.com/avatar/show/642***************4453/120",
"https://account.glodon.com/avatar/show/642***************4453/200"
],
"avatarETag": "d3ae3deb197cc8a41a1542beb1423225",
"displayName": "summer",
"strId": "642***************4453",
"nickname": "summer",
"accountName": "138****8888",
"createTime": "2019-01-04 14:10:44",
"passwordStrength": 1,
"passwordMobile": "138****8888",
"verified": true,
"enterpriseUser": false,
"emailVerified": true,
"mobileVerified": true,
"defaultAvatar": false
}
}
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
# 异常返回结果
{
"code": 11600,
"message": "accessToken无效",
"data": "Invalid access token: cn-c4e7bae******************018058"
}
1
2
3
4
5
2
3
4
5