Hi, I would like to create some weekly statistic reports using the REST API. I will be doing this for
forum linkingyourthinking com
but I would like to start early before I have gotten the keys from the administrator which might take a while, since they are in the middle of a 6 week workshop.
So I was hoping to begin right now with try.discourse.org, Is that possible? I have tried curl -X GET https://try.discourse.org/site.json
and it works nicely.
Il nome utente dell’API indicherà a Discourse quali funzionalità sono abilitate. Un amministratore o un utente normale non hanno le stesse funzionalità e l’utilizzo di uno o dell’altro limiterà ciò che è possibile ottenere utilizzando l’API.
La chiave API è la password da utilizzare con il nome utente dell’API.
Nel mio scenario voglio usare solo l’API di discourse e la mia confusione è che ogni utente che usa la mia app può creare post, mettere like, commentare altre funzionalità , quindi ora devo creare un nome utente API e una chiave API per ogni utente per usare le rispettive API?
Secondo il documento ho creato una chiave API “Tutti gli utenti”, ma sto riscontrando questo errore
{
"errors": [
"Non sei autorizzato a visualizzare la risorsa richiesta. Il nome utente o la chiave API non è valido."
],
"error_type": "invalid_access"
}
in Postman quando richiamo questa API /tags.json.
Puoi aiutarmi con questo?