特定のユーザー(メールアドレス、ユーザー名、または ID)の投稿のみを API から取得する方法

こんにちは、

Discourse の API ドキュメント(https://docs.discourse.org/)を閲覧しましたが、特定のユーザーの投稿のみを取得できるエンドポイントが見つかりませんでした。これは、Discourse と連携して開発中の Web アプリケーションにおける必須要件です。メールアドレスで取得できれば理想的ですが、Discourse のユーザー名または ID でも構いません。

この機能は API で提供されていますでしょうか?

良い一日をお過ごしください、
ピーター

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

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