Sha256: f83f1dfc7048617c1eb502b155d7459b832cefc06684bf0ef8445d482d614687

Contents?: true

Size: 492 Bytes

Versions: 2

Compression:

Stored size: 492 Bytes

Contents

# frozen_string_literal: true
module DiscourseApi
  module API
    module UserActions
      def user_replies(username)
        params = { username: username, filter: "5" }
        response = get("/user_actions.json", params)
        response.body["user_actions"]
      end

      def user_topics_and_replies(username)
        params = { username: username, filter: "4,5" }
        response = get("/user_actions.json", params)
        response.body["user_actions"]
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
discourse_api-2.0.1 lib/discourse_api/api/user_actions.rb
discourse_api-2.0.0 lib/discourse_api/api/user_actions.rb