Sha256: 3da80ea3dd5732d8105677a317a86d9bf0df3f051cdc05c05b6aaa42eea5d71a

Contents?: true

Size: 253 Bytes

Versions: 28

Compression:

Stored size: 253 Bytes

Contents

module DiscourseApi
  module API
    module PrivateMessages
      def private_messages(username, *args)
        response = get("topics/private-messages/#{username}.json", args)
        response[:body]['topic_list']['topics']
      end
    end
  end
end

Version data entries

28 entries across 28 versions & 1 rubygems

Version Path
discourse_api-0.4.0 lib/discourse_api/api/private_messages.rb
discourse_api-0.3.6 lib/discourse_api/api/private_messages.rb
discourse_api-0.3.0 lib/discourse_api/api/private_messages.rb
discourse_api-0.2.9 lib/discourse_api/api/private_messages.rb
discourse_api-0.2.8 lib/discourse_api/api/private_messages.rb
discourse_api-0.2.7 lib/discourse_api/api/private_messages.rb
discourse_api-0.2.5 lib/discourse_api/api/private_messages.rb
discourse_api-0.2.4 lib/discourse_api/api/private_messages.rb