Module: Mastodon::REST::Search
Instance Method Summary collapse
-
#search(query, options = {}) ⇒ Mastodon::Results
Search for content.
Methods included from Utils
#array_param, #perform_request, #perform_request_with_collection, #perform_request_with_object
Instance Method Details
#search(query, options = {}) ⇒ Mastodon::Results
Search for content
18 19 20 21 22 23 24 25 |
# File 'lib/mastodon/rest/search.rb', line 18 def search(query, = {}) opts = { q: query }.merge() perform_request_with_object(:get, '/api/v1/search', opts, Mastodon::Results) end |