...
| Code Block | ||||
|---|---|---|---|---|
| ||||
{
"status": "success",
"data": [
{
"field_id": "3",
"field_name": "hobbies_and_interest",
"field_label": "hobbies and interests:",
"var_type": "text",
"value": "Reading books, traveling, cooking...",
"custom_value": "",
"group_id": "2",
"group_label": "Personal Information"
},
{
"field_id": "2",
"field_name": "job",
"field_label": "Job",
"var_type": "select",
"value": "Back-end Developer",
"custom_value": "1",
"group_id": "2",
"group_label": "Personal Information"
},
{
"field_id": "1",
"field_name": "about_me",
"field_label": "About Me",
"var_type": "textarea",
"value": "I'm a good guy :)",
"custom_value": "",
"group_id": "1",
"group_label": "About Me"
}
],
"messages": [
"Custom fields successfully updated."
]
}
|
GET /user/mine
Get current user
Example URI
| Code Block | ||||
|---|---|---|---|---|
| ||||
http://example.com/restful_api/user/mine
|
Response
| Code Block | ||||
|---|---|---|---|---|
| ||||
{
"status": "success",
"data": {
"cover_photo_exists": "6",
"user_id": "1",
"user_group_id": "1",
"user_name": "admin",
"full_name": "Admin",
"email": "robert@example.com",
"gender": "3",
"birthday": "05091988",
"birthday_search": "579139200",
"country_iso": "US",
"language_id": "en",
"time_zone": "z357",
"user_image": "2016/12/07140d52d833bb6c304ee1f48bbe623f%s.png",
"is_online": "1",
"title": "Administrator",
"is_friend": false,
"is_friend_of_friend": false,
"is_friend_request": false,
"relation_id": "2",
"relation_with_id": "0",
"relation_phrase": "Single"
},
"messages": []
}
|