Sha256: 3d38402f712693dea211de8d00035e2dbe0dd01a278485d0866029d7516195ad

Contents?: true

Size: 466 Bytes

Versions: 10

Compression:

Stored size: 466 Bytes

Contents

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

10 entries across 10 versions & 1 rubygems

Version Path
discourse_api-0.34.0 lib/discourse_api/api/user_actions.rb
discourse_api-0.33.0 lib/discourse_api/api/user_actions.rb
discourse_api-0.32.0 lib/discourse_api/api/user_actions.rb
discourse_api-0.31.0 lib/discourse_api/api/user_actions.rb
discourse_api-0.30.0 lib/discourse_api/api/user_actions.rb
discourse_api-0.29.0 lib/discourse_api/api/user_actions.rb
discourse_api-0.28.1 lib/discourse_api/api/user_actions.rb
discourse_api-0.28.0 lib/discourse_api/api/user_actions.rb
discourse_api-0.27.0 lib/discourse_api/api/user_actions.rb
discourse_api-0.26.0 lib/discourse_api/api/user_actions.rb