module Mastodon::REST::Conversations
Public Instance Methods
conversations(options = {})
click to toggle source
Get a list of conversations @param options [Hash] @option options :max_id [Integer] @option options :since_id [Integer] @option options :min_id [Integer] @option options :limit [Integer] @return [Mastodon::Collection<Mastodon::Conversation>]
# File lib/mastodon/rest/conversations.rb, line 16 def conversations(options = {}) perform_request_with_collection(:get, '/api/v1/conversations', options, Mastodon::Conversation) end
delete_conversation(id)
click to toggle source
Delete a conversation. Does not delete statuses in the conversation @param id [Integer]
# File lib/mastodon/rest/conversations.rb, line 29 def delete_conversation(id) perform_request(:delete, "/api/v1/conversations/#{id}") end
mark_conversation_as_read(id)
click to toggle source
Mark a conversation as read @param id [Integer] @return [Mastodon::Conversation]
# File lib/mastodon/rest/conversations.rb, line 23 def mark_conversation_as_read(id) perform_request_with_object(:post, "/api/v1/conversations/#{id}/read", {}, Mastodon::Conversation) end