module Mastodon::REST::ScheduledStatuses

Public Instance Methods

delete_scheduled_status(id) click to toggle source

Cancel a scheduled status @param id [Integer]

# File lib/mastodon/rest/scheduled_statuses.rb, line 38
def delete_scheduled_status(id)
  perform_request(:delete, "/api/v1/scheduled_statuses/#{id}")
end
scheduled_status(id) click to toggle source

Retrieve a scheduled status @param id [Integer] @return [Mastodon::ScheduledStatus]

# File lib/mastodon/rest/scheduled_statuses.rb, line 23
def scheduled_status(id)
  perform_request_with_object(:get, "/api/v1/scheduled_statuses/#{id}", {}, Mastodon::ScheduledStatus)
end
scheduled_statuses(options = {}) click to toggle source

Get a list of scheduled statuses @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::ScheduledStatus>]

# File lib/mastodon/rest/scheduled_statuses.rb, line 16
def scheduled_statuses(options = {})
  perform_request_with_collection(:get, '/api/v1/scheduled_statuses', options, Mastodon::ScheduledStatus)
end
update_scheduled_status(id, params = {}) click to toggle source

Update a scheduled status @param id [Integer] @param params [Hash] @option params :scheduled_at [String] @return [Mastodon::ScheduledStatus]

# File lib/mastodon/rest/scheduled_statuses.rb, line 32
def update_scheduled_status(id, params = {})
  perform_request_with_object(:put, "/api/v1/scheduled_statuses/#{id}", params, Mastodon::ScheduledStatus)
end