armingrudd
(Armin Ghassemi Rudd)
Février 20, 2024, 8:17
1
Salut,
Est-il possible d’obtenir les publications (ID) que l’utilisateur a consultées ? Le cas d’utilisation ici est de filtrer les sujets dans un laps de temps et de compter les sujets consultés dans le laps de temps personnalisé.
Étant donné que « publication lue » est l’une des statistiques utilisateur sur /u, je pensais qu’il serait également possible de l’obtenir dans un laps de temps personnalisé.
2 « J'aime »
Lilly
(Lillian Louis)
Février 20, 2024, 1:44
2
Avez-vous consulté la documentation de l’API REST ?
Discourse API
Please view the Discourse API Documentation site for detailed info:
https://docs.discourse.org
Deprecation Warning!
On April 6th, 2020 we dropped support for all non-HTTP header based authentication (excluding some rss, mail-receiver, and ics routes). This means that API requests that have an api_key and api_username in the query params or in the HTTP body of the request will soon stop working. Please see the example cURL request below for how to update your API requ…
Discourse is backed by a complete JSON api. Anything you can do on the site you can also do using the JSON api.
Many of the endpoints are properly documented in the discourse_api gem, however some endpoints lack documentation.
To determine how to do something with the JSON API here are some steps you can follow.
Example: recategorize a topic.
Go to a topic and start editing a category:
[image]
Open Chrome dev tools, switch to the Network tab, select XHR filter:
[image]
Perform the op…
There are several guides covering various API uses or explanations.
This one gives practical and comprehensive examples on how to use it.
All code examples in this guide aren’t meant to display good practice or to be used as they are.
A lot of checks, error handling and so on are purposely ignored or skipped to focus purely on the API’s usage.
What is the API used for?
Most of your actions in Discourse (posting, liking, editing a setting, etc.) are done using the API by making re…
Aussi les requêtes Data Explorer
Summary
Discourse Data Explorer allows you to make SQL queries against your live database, allowing for up-to-the-minute stats reporting.
Install Guide
This plugin is bundled with Discourse core. There is no need to install the plugin separately.
If you’re looking for examples or support for any custom queries, you can find lots of topics in our Data & reporting category under the sql-query tag. If there’s not one to suit your pa…
5 « J'aime »