Skip to content

Login & Authentication

8bithero edited this page Nov 20, 2012 · 1 revision

Getting The Authentication token

In order for users to begin verifying themselves with an authentication token they will first need to provide their login credentials (email & password).

Login credentials will need to be sent as parameters to the backend server via:

POST /api/v1/login

Note: You may pass 'email' and 'password' as either request parameters or as URL parameters.

It is also required to add Content-Type as x-www-form-urlencoded to the header.

Upon successful authentication a JSON responce - similar to the example below - will be sent back.

{
    "success": true,
    "auth_token": "pvCXnuWhfPYkD4iDQp3",
    "email": "foo@bar.com"
}

Clone this wiki locally