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 :limit [Integer] @return [Mastodon::Collection<Mastodon::Status>]
# File lib/mastodon/rest/timelines.rb, line 40 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 :limit [Integer] @return [Mastodon::Collection<Mastodon::Status>]
# File lib/mastodon/rest/timelines.rb, line 17 def home_timeline(options = {}) perform_request_with_collection(:get, '/api/v1/timelines/home', 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 :limit [Integer] @return [Mastodon::Collection<Mastodon::Status>]
# File lib/mastodon/rest/timelines.rb, line 28 def public_timeline(options = {}) perform_request_with_collection(:get, '/api/v1/timelines/public', options, Mastodon::Status) end