GET /user
Access to my profile
Request Headers
| Name | Type | Required or Optional | Description |
|---|---|---|---|
| token | string | required | Access Credentials Token |
Request Response
| Name | Type | Required or Optional | Description |
|---|---|---|---|
| profile | object | required | |
| ∟ id | int | required | user id |
| ∟ type | string | required | type (inside, internal users|outside, external users) |
| ∟ dept | int | required | department |
| ∟ account | string | required | user name |
| ∟ realname | string | required | real name |
| ∟ nickname | string | optional | nick name |
| ∟ avatar | string | optional | avatar |
| ∟ birthday | date | optional | birthday |
| ∟ gender | srting | optional | gender (f, female|m, male) |
| ∟ mobile | srting | optional | mobile number |
| ∟ phone | srting | optional | phone number |
| ∟ weixin | srting | optional | weixin number |
| ∟ address | srting | optional | address |
| ∟ join | date | optioanl | join date |
| ∟ admin | boolean | required | is it an administrator? |
Response Example
{
"profile": {
"id": 1,
"company": 0,
"type": "inside",
"dept": 0,
"account": "admin",
"role": {
"code": "",
"name": ""
},
"realname": "admin",
"nickname": "",
"commiter": "",
"avatar": "",
"birthday": null,
"gender": "f",
"email": "",
"skype": "",
"qq": "",
"mobile": "",
"phone": "",
"weixin": "",
"dingding": "",
"slack": "",
"whatsapp": "",
"address": "",
"zipcode": "",
"nature": "",
"analysis": "",
"strategy": "",
"join": null,
"visits": 10,
"ip": "127.0.0.1",
"last": "2021-11-28T16:31:40Z",
"fails": 0,
"locked": null,
"ranzhi": "",
"score": 0,
"scoreLevel": 0,
"deleted": "0",
"admin": true
}
}