Resource icon

REST API Kit 1.3

No permission to download
Every thread prefix in an API result now includes colors: the text, background and border color its label has in your default style. This includes the prefixes in forums/{id} and needs no extra scope.
  • Colors as visitors see them: they're read from your default style's compiled label CSS, including edited label styles, dark styles and custom CSS classes. Only plain color values are sent.
  • No slower API requests: a background job works the colors out when your default style or a prefix's CSS class changes, and API requests only read the saved result. Until it first runs, prefixes have no colors field.
  • Changed: GET thread-prefixes/ now returns {"prefixes": [...]}, like XenForo's own list endpoints. If you read the old bare list, update your code before upgrading.
To see a real-world use of thread prefixes over the API, see the enhancements made in the XFtoWP 1.7.3 plugin.
You can now view and track API Kit on GitHub: github.com/XFtoWP/api-kit

Fixes
  • The most_replies thread sort no longer loads every thread from the last 30 days into memory. It now uses a single sort, so it stays fast on busy forums, and the order is unchanged.
  • No PHP 8.4 deprecation notice from the thread sort.
  • Secondary group IDs are compared as text in the users/ filter.

Other changes
  • Renamed to API Kit, with XenForo 2.2+ and PHP 7.2+ requirements declared.
  • Added a full README with every endpoint, filter, sort and API scope.

Upgrade with Add-ons ==> Install/upgrade from archive.
Back
Top Bottom