Method: Ayadn::Endpoints#search

Defined in:
lib/ayadn/endpoints.rb

#search(words, options) ⇒ Object



172
173
174
175
176
177
# File 'lib/ayadn/endpoints.rb', line 172

def search(words, options)
  make_options_list_simple(options) do
    API.build_query({count: Settings.options.counts.search})
  end
  "#{@posts_url}search?text=#{words}&access_token=#{Settings.user_token}#{@options_list}"
end