module Mastodon::REST::Suggestions
Public Instance Methods
remove_suggestion(id)
click to toggle source
Remove account from suggestions @param id [Integer] @return [Boolean]
# File lib/mastodon/rest/suggestions.rb, line 21 def remove_suggestion(id) !perform_request(:delete, "/api/v1/suggestions/#{id}").nil? end
suggestions()
click to toggle source
Get “who to follow” suggestions for authenticated user @return [Mastodon::Collection<Mastodon::Account>]
# File lib/mastodon/rest/suggestions.rb, line 13 def suggestions perform_request_with_collection(:get, '/api/v1/accounts/suggestions', {}, Mastodon::Account) end