module Mastodon::REST::Suggestions
Public Instance Methods
delete_suggestion(account_id)
click to toggle source
Remove a suggestion @param account_id [Integer]
# File lib/mastodon/rest/suggestions.rb, line 22 def delete_suggestion(account_id) perform_request(:delete, "/api/v1/suggestions/#{account_id}") end
suggestions(options = {})
click to toggle source
Get “who to follow” suggestions for authenticated user @param options [Hash] @option options :max_id [Integer] @option options :since_id [Integer] @option options :min_id [Boolean] @option options :limit [Integer] @return [Mastodon::Collection<Mastodon::Account>]
# File lib/mastodon/rest/suggestions.rb, line 16 def suggestions(options = {}) perform_request_with_collection(:get, '/api/v1/suggestions', options, Mastodon::Account) end