All requests must be include there keys in headers:
XF-TApi-Key
XF-TApi-Version
XF-TApi-Token
: If omitted the request processed for Guest user.
Parameters:
- N/A
Response:
{
"reactions": [
{
"reactionId": number,
"text": string,
"imageUrl": url
},
...
],
"apiVersion": number,
"homeTabActive": string,
"allowRegistration": boolean,
"googleAnalyticsWebPropertyId": string
}
Parameters:
- N/A
Response:
{
"tags": [
"tag a",
"tag b",
...
]
}
Parameters:
- order: (string) Currently support: new_threads, recent_threads, trending
Response:
{
"threads": array
"pagintion": object
}
Attempt login and generate access token
Parameters:
- username: (string) (required)
- password: (string) (required) A encrypted password string.
Response:
{
"user": object,
"accessToken": string
}
Refresh existing token
Parameters:
- token: (string) (required)
Response:
{
"user": object,
"accessToken": string
}
Creating new user
Parameters:
- username: (string) (required)
- password: (string) (required) A encrypted password string
- email: (string) (password)
Response:
{
"user": object,
"accessToken": string
}
Do batch requests. You may pass json to request body. Each batch request has these keys:
method
: GET, POSTuri
: Target requestparams
: Array of params which for this request
Response:
{
"jobs": [
...
]
}
Please see the method Util\PasswordDecrypter::encrypt(...)