Method: Nom::API#user_search

Defined in:
lib/nom-ruby/api.rb

#user_search(query, options = {}) ⇒ Object



51
52
53
54
55
56
57
58
# File 'lib/nom-ruby/api.rb', line 51

def user_search(query, options = {})
  start, limit = Nom::Util.page(options)
  Nom::API.handle.get('/users/search', {
    :query => query, # If the input value is of unknown origin
    :screen_name => options[:screen_name],
    :email => options[:email]
  })
end