Module: Mastodon::REST::Suggestions
Instance Method Summary collapse
-
#delete_suggestion(account_id) ⇒ Object
Remove a suggestion.
-
#suggestions(options = {}) ⇒ Mastodon::Collection<Mastodon::Account>
Get “who to follow” suggestions for authenticated user.
Methods included from Utils
#array_param, #perform_request, #perform_request_with_collection, #perform_request_with_object
Instance Method Details
#delete_suggestion(account_id) ⇒ Object
Remove a suggestion
22 23 24 |
# File 'lib/mastodon/rest/suggestions.rb', line 22 def delete_suggestion(account_id) perform_request(:delete, "/api/v1/suggestions/#{account_id}") end |
#suggestions(options = {}) ⇒ Mastodon::Collection<Mastodon::Account>
Get “who to follow” suggestions for authenticated user
16 17 18 |
# File 'lib/mastodon/rest/suggestions.rb', line 16 def suggestions( = {}) perform_request_with_collection(:get, '/api/v1/suggestions', , Mastodon::Account) end |