This program handles all Xiler API routes that start with /oauth/
.
Routes: docs.xiler.net/api/oauth
Objects: docs.xiler.net/api/objects
JSON Request Body:
token
| The user their current token (which is granted on site login)app
| The application ID that will be linked to the tokenuser
| The uuid of the user that will grant access
Returns:
{
"status": {
"code": 201,
"message": "Successfully generated an auth code"
},
"data": {
"code": "hhrublkdd1ytqmjnkddeeuxnsilw8mavroyrxfxqu0adikrcpf0ivchithkkcyjj",
"app": "83ed1"
}
}
JSON Request Body:
code
| The code that has been received by code routeapp
| The application ID that is linked to the token
Returns:
{
"status": {
"code": 0,
"message": "Successfully created a new token"
},
"data": {
"access_token": "d19ca43034765d2c9ca51f3364ac0dcc.ba54cdfb7a125c2cd13be08#2c23fc63",
"app": "83ed1",
"refresh_token": "3eb016cba372e82233103cbc46b1e87f.2d78f398d7e6ba2e6598f8e#6be110b2",
"token_type": 1,
"expires_in": 599825
}
}
JSON Request Body:
token
| The private token which is set in the env
Returns:
{
"site": {
"response_time": 0,
"status": 200
},
"api": {
"response_time": 0,
"status": 200
},
"redis": {
"response_time": 0,
"status": 200
},
"postgresql": {
"response_time": 0,
"status": 200
}
}