-
Notifications
You must be signed in to change notification settings - Fork 0
API Calls Get Auth
Jesús Alvarado Garzón edited this page Dec 7, 2017
·
3 revisions
Needs:
Content-Type : text/html
data : { "username": "<username>", "password" : "<password>" }
CURL Example:
curl -X POST \
https://erste-staging-pr-19.herokuapp.com/api/auth/get_tokens \
-H 'content-type: text/html' \
-d '{"username":"jesus", "password":"mypassword1234"}'
Returns:
{
"expires_in": 600,
"refresh_token": "9610dad63ab870b442f508f1563da85a042ce0da",
"user_context": {
"uid": 1,
"lang": "en_US",
"tz": false
},
"company_id": 1,
"refresh_expires_in": 7200,
"uid": 1,
"access_token": "ef3145125775fdcff9a9cb5bf86f836526572af0"
}
API Calls