Come recuperare dall'API solo i post di un utente specifico (tramite e-mail, nome utente o id)

Salve,

Ho consultato la documentazione API seguente: https://docs.discourse.org/

Purtroppo non sono riuscito a trovare alcun endpoint che mi permetta di recuperare solo i post di un utente specifico: questo è un requisito fondamentale per la funzionalità su cui sto lavorando in un’app web integrata con Discourse. Vorrei recuperarli tramite indirizzo e-mail, ma anche il nome utente o l’ID di Discourse mi andrebbero bene.

L’API offre questa funzionalità?

Buona giornata,
Peter

Check the activity tab. It might help; but it depends on what you really need.

  • User’s posts: /user_actions.json?offset=0&username=USERNAME&filter=5
    Note: You can play with offset and limit
    Note: filter has those values:
  likes_given: 1,
  likes_received: 2,
  bookmarks: 3,
  topics: 4,
  posts: 5,
  replies: 6,
  mentions: 7,
  quotes: 9,
  edits: 11,
  messages_sent: 12,
  messages_received: 13,
  pending: 14

Also,

  • Latest posts: /USERNAME/activity.json
  • By topics: /topics/created-by/USERNAME.json
6 Mi Piace

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.