module Mastodon::REST::Timelines

Public Instance Methods

hashtag_timeline(hashtag, options = {}) click to toggle source

Retrieve statuses from a hashtag @param hashtag [String] @param options [Hash] @option options :max_id [Integer] @option options :since_id [Integer] @option options :min_id [Integer] @option options :limit [Integer] @option options :local [Boolean] @option options :only_media [Boolean] @return [Mastodon::Collection<Mastodon::Status>]

# File lib/mastodon/rest/timelines.rb, line 43
def hashtag_timeline(hashtag, options = {})
  perform_request_with_collection(:get, "/api/v1/timelines/tag/#{hashtag}", options, Mastodon::Status)
end
home_timeline(options = {}) click to toggle source

Retrieve statuses from the home timeline @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::Status>]

# File lib/mastodon/rest/timelines.rb, line 16
def home_timeline(options = {})
  perform_request_with_collection(:get, '/api/v1/timelines/home', options, Mastodon::Status)
end
list_timeline(id, options = {}) click to toggle source

Retrieve statuses from a list @param id [String] @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::Status>]

# File lib/mastodon/rest/timelines.rb, line 55
def list_timeline(id, options = {})
  perform_request_with_collection(:get, "/api/v1/timelines/list/#{id}", options, Mastodon::Status)
end
public_timeline(options = {}) click to toggle source

Retrieve statuses from the public timeline @param options [Hash] @option options :max_id [Integer] @option options :since_id [Integer] @option options :min_id [Integer] @option options :limit [Integer] @option options :local [Boolean] @option options :only_media [Boolean] @return [Mastodon::Collection<Mastodon::Status>]

# File lib/mastodon/rest/timelines.rb, line 29
def public_timeline(options = {})
  perform_request_with_collection(:get, '/api/v1/timelines/public', options, Mastodon::Status)
end