-
Notifications
You must be signed in to change notification settings - Fork 8
Authentication
sri prashanth edited this page Mar 29, 2016
·
4 revisions
The authentication API is used to login users into DonorOnCall.
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" }
{
"access_token": "7ffab40dccdec42f6040fa927fdd05a4",
"user_id": "Apxxxxxxxxxxxxxxx",
"email": "[email protected]",
"user_type":"donor/recipient"
}
{
"error_message":"Unable to authenticate wrong email and pwd "
}
POST http://app.donoroncall.com/api/logout