Used to collect a Token for a registered User.
URL : /api/auth?api=web
Method : POST
Auth required : NO
Headers required:
x-client-data: <client_token>
Data constraints
{
"data": {
"email": "[valid email address]",
"password": "[password in plain text]"
}
}
Data example
{
"data": {
"email": "[valid email address]",
"password": "[password in plain text]"
}
}
Code : 200 OK
Content example
{
"data": {
"token": "<auth_token>",
"role": "manager",
"gps_active": 1,
"demo_links": null
},
"status": "ok"
}
Condition : If 'username' and 'password' combination is wrong.
Content :
{
"data": "<Error Msg>",
"status": "error"
}