/api/auth

Log in the user and get the access token.

End point: http://greatpost.es/api/auth

POST data:

Key
Value
Description
Required

username

string

User’s username

Yes

password

string

User’s username

Yes

timezone

string

User’s username

No

device_id

string

User’s username

No

JSON formatted success repsond:

{
  "api_status": 200,
  "access_token": "", // store this, it will be used for all other API calls
  "user_id": "", // authenticated user id
  "timezone": "", // user timezone
}

Last updated