Skip to content

GameTopic/XF2_MobileAppsApi

 
 

Repository files navigation

Extended endpoints

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.

GET tapi-apps/

Parameters:

  • N/A

Response:

{
  "reactions": [
    {
      "reactionId": number,
      "text": string,
      "imageUrl": url
    },
    ...
  ],
  "apiVersion": number,
  "homeTabActive": string,
  "allowRegistration": boolean,
  "googleAnalyticsWebPropertyId": string
}

GET tapi-apps/trending-tags

Parameters:

  • N/A

Response:

{
  "tags": [
    "tag a",
    "tag b",
    ...
  ]
}

GET tapi-apps/newfeeds

Parameters:

  • order: (string) Currently support: new_threads, recent_threads, trending

Response:

{
    "threads": array
    "pagintion": object
}

POST tapi-apps/auth

Attempt login and generate access token

Parameters:

  • username: (string) (required)
  • password: (string) (required) A encrypted password string.

Response:

{
    "user": object,
    "accessToken": string
}

POST tapi-apps/refresh-token

Refresh existing token

Parameters:

  • token: (string) (required)

Response:

{
    "user": object,
    "accessToken": string
}

POST tapi-apps/register

Creating new user

Parameters:

  • username: (string) (required)
  • password: (string) (required) A encrypted password string
  • email: (string) (password)

Response:

{
    "user": object,
    "accessToken": string
}

POST /tapi-apps/batch

Do batch requests. You may pass json to request body. Each batch request has these keys:

  • method: GET, POST
  • uri: Target request
  • params: Array of params which for this request

Response:

{
  "jobs": [
    ...
  ]
}

Encrypt password

Please see the method Util\PasswordDecrypter::encrypt(...)

About

Enhancement API to XenForo 2.1.x

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • PHP 96.1%
  • HTML 3.9%