URL: v3/api/get-user-by-token
Method: GET
Response Format: JSON
Description : In case of social login, it is only token that has sent to the frontend. So this API provides user details after giving that token.
Parameters:
| Name | Data Type | Required / Optional | Description |
| token | String | Required | token |
Success Response:
{
"success": true,
"data": {
"user": {
"id": 1,
"user_name": "Ak403602@gmail.com",
"first_name": "Avinash",
"last_name": "Kumar",
"gender": "0",
"email": "ak403602@gmail.com",
"ban": "0",
"active": "1",
"is_delete": "0",
"ext": "",
"country_code": "",
"phone_number": "",
"mobile": "Not available",
"agent_sign": "",
"account_type": "",
"account_status": "",
"assign_group": "1",
"primary_dpt": "1",
"agent_tzone": "",
"daylight_save": "",
"limit_access": "",
"directory_listing": "",
"vacation_mode": "",
"company": "",
"role": "admin",
"internal_note": "",
"profile_pic": "https://secure.gravatar.com/avatar/c0c345537c5e16277d4b9c70014f8aee?s=80&r=g&d=identicon",
"fcm_token": null,
"i_token": null,
"created_at": "2018-02-12 08:43:56",
"updated_at": "2018-02-14 07:21:44",
"location": null,
"user_language": null,
"mobile_otp_verify": "1",
"email_verify": "1",
"is_login": "1",
"not_accept_ticket": "0",
"ldap_username": "",
"isldapauth": "0"
}
}
}