2012-09-20 10:44:44 -04:00
|
|
|
Login to get private token
|
|
|
|
|
|
|
|
```
|
|
|
|
POST /session
|
|
|
|
```
|
|
|
|
|
|
|
|
Parameters:
|
|
|
|
|
|
|
|
+ `email` (required) - The email of user
|
|
|
|
+ `password` (required) - Valid password
|
|
|
|
|
|
|
|
|
|
|
|
```json
|
|
|
|
{
|
|
|
|
"id": 1,
|
2012-12-10 17:46:31 -05:00
|
|
|
"username": "john_smith",
|
2012-09-20 10:44:44 -04:00
|
|
|
"email": "john@example.com",
|
|
|
|
"name": "John Smith",
|
|
|
|
"private_token": "dd34asd13as",
|
|
|
|
"created_at": "2012-05-23T08:00:58Z",
|
|
|
|
"blocked": true
|
|
|
|
}
|
|
|
|
```
|