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 @return [Mastodon::Results] If q is a URL, Mastodon
will
attempt to fetch the provided account or status. Otherwise, it will do a local account and hashtag search.
# File lib/mastodon/rest/search.rb, line 18 def search(query, options = {}) opts = { q: query }.merge(options) perform_request_with_object(:get, '/api/v1/search', opts, Mastodon::Results) end