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.14.1 lib/discourse_api/api/private_messages.rb
discourse_api-0.14.0 lib/discourse_api/api/private_messages.rb
discourse_api-0.13.0 lib/discourse_api/api/private_messages.rb
discourse_api-0.12.0 lib/discourse_api/api/private_messages.rb
discourse_api-0.10.1 lib/discourse_api/api/private_messages.rb
discourse_api-0.10.0 lib/discourse_api/api/private_messages.rb
discourse_api-0.9.1 lib/discourse_api/api/private_messages.rb
discourse_api-0.9.0 lib/discourse_api/api/private_messages.rb
discourse_api-0.8.1 lib/discourse_api/api/private_messages.rb
discourse_api-0.8.0 lib/discourse_api/api/private_messages.rb
discourse_api-0.7.0 lib/discourse_api/api/private_messages.rb
discourse_api-0.6.2 lib/discourse_api/api/private_messages.rb
discourse_api-0.6.1 lib/discourse_api/api/private_messages.rb
discourse_api-0.6.0 lib/discourse_api/api/private_messages.rb
discourse_api-0.5.1 lib/discourse_api/api/private_messages.rb
discourse_api-0.5.0 lib/discourse_api/api/private_messages.rb
discourse_api-0.4.4 lib/discourse_api/api/private_messages.rb
discourse_api-0.4.3 lib/discourse_api/api/private_messages.rb
discourse_api-0.4.2 lib/discourse_api/api/private_messages.rb
discourse_api-0.4.1 lib/discourse_api/api/private_messages.rb