Method: Foursquare2::Pages#search_pages

Defined in:
lib/foursquare2/pages.rb

#search_pages(options = {}) ⇒ Object

Search for pages.

Parameters:

  • options (Hash) (defaults to: {})

Options Hash (options):

  • String (Object)

    :twitter - Match on twitter username

  • String (Object)

    :fbid - Match on facebook id.

  • String (Object)

    :name - Match on name

[View source]

24
25
26
27
28
29
# File 'lib/foursquare2/pages.rb', line 24

def search_pages(options={})
  response = connection.get do |req|
    req.url "pages/search", options
  end
  return_error_or_body(response, response.body.response)
end