Skip to content

Authentication

sri prashanth edited this page Mar 29, 2016 · 4 revisions

Authentication

The authentication API is used to login users into DonorOnCall.

Login

POST http://app.donoroncall.com/api/login

The body is expected to be x-www-form-urlencoded.Email and password are base64 encoded

{ emailid:"[email protected]", password :"prashanth123" }

Response 200
{
    "access_token": "7ffab40dccdec42f6040fa927fdd05a4",
    "user_id": "Apxxxxxxxxxxxxxxx",
    "email": "[email protected]",
    "user_type":"donor/recipient"
}

For unsuccessfull Login

{
"error_message":"Unable to authenticate wrong email and pwd "
}
Logout

POST http://app.donoroncall.com/api/logout

Clone this wiki locally