module Mastodon::REST::Search
Public Instance Methods
search(query, options = {})
click to toggle source
Search
for content @param options [Hash] @option options :q [String] The search query @option options :resolve [Boolean] Whether to resolve non-local accounts @option options :limit [Integer] @return [Mastodon::Results]
# File lib/mastodon/rest/search.rb, line 15 def search(query, options = {}) perform_request_with_object(:get, '/api/v2/search', { q: query }.merge(options), Mastodon::Results) end