REST API Kit 1.2.1

XF 2.2 / 2.3 REST API Kit 1.2.1

Add-on xenforo 2

Ressources et modules complémentaires pour XenForo 2

Styles xenforo 2

Styles / Thèmes et apparence pour xenforo 2

Templates xenforo 2

Codes pour modifier les templates sur xenforo 2

Section Premium

Add-on et Styles pour membre Premium
  • ⚠️ Section Premium. Réserver aux Membres Premium ⚠️
REST API Kit 1.2.1

XF 2.2 / 2.3 REST API Kit 1.2.1

Catégorie Catégorie Add-Ons
Titre du sujet Titre du sujet REST API Kit 1.2.1
Auteur de la discussion Auteur de la discussion laurent68
Date de début Date de début
Réponses Réponses 0
Affichages Affichages 6
Réaction Réaction 0
Dernier message par Dernier message par laurent68

laurent68

Fondateur

Staff
fondateur
Réputation: 100%
Discussions
5 112
Messages
13 400
Solutions
85
J'aime
8 158
Points
198
You can now view and track API Kit on GitHub: github.com/XFtoWP/api-kit



API Kit adds endpoints, filters and sorts to the XenForo REST API. It's free, has no options, and works with any API key you give its scopes to.

Thread prefixes​

  • GET thread-prefixes/ lists every thread prefix with its title, CSS class and label color.
  • Every prefix in an API result, including the ones in forums/{id}, gains colors: the text, background and border color its label has in your default style.
Colors are read from your default style's compiled label CSS, so edited label styles, dark styles and custom CSS classes come through as your visitors see them. Only plain color values are sent; anything that can't be read as a color is left out.

API Kit works the colors out in a background job when your default style or a prefix's CSS class changes. API requests only read the saved result, so they stay fast.

User groups​

  • GET user-groups/ lists every user group with its title, display style priority, username CSS and banner CSS class.
  • GET users/ gains user_group_id and secondary_group_ids[] filters. A user must be in every secondary group you list.

Thread sorts​

GET threads/ gains two sorts for the forum-wide thread list:
  • most_replies=1: threads active in the last 30 days by reply count, then everything else by latest activity
  • most_viewed=1: threads by view count

Setup​

In Setup → API keys, give the keys that need them these scopes:
  • apikit_thread_prefix:read for thread-prefixes/
  • apikit_user_group:read for user-groups/
Prefix colors in other results need no extra scope. The user filters use XenForo's own user:read scope and member list permissions, and the thread sorts use thread:read.

Requirements​

XenForo 2.2 or later and PHP 7.2 or later.

Source code and developer notes are on GitHub. MIT licensed.

Télécharger V1.2.1 :
 
Contenu similaire Les plus vues Voir plus
Retour
Haut Bas