Module: Foursquare2::Events
- Included in:
- Client
- Defined in:
- lib/foursquare2/events.rb
Instance Method Summary collapse
-
#event(event_id, options = {}) ⇒ Object
Retrieve information about an event.
-
#event_categories(options = {}) ⇒ Object
Retrieve information about all event categories.
Instance Method Details
#event(event_id, options = {}) ⇒ Object
Retrieve information about an event
param [String] event_id The ID of the event
8 9 10 11 12 13 |
# File 'lib/foursquare2/events.rb', line 8 def event(event_id, ={}) response = connection.get do |req| req.url "events/#{event_id}", end return_error_or_body(response, response.body.response.event) end |
#event_categories(options = {}) ⇒ Object
Retrieve information about all event categories.
17 18 19 20 21 22 |
# File 'lib/foursquare2/events.rb', line 17 def event_categories(={}) response = connection.get do |req| req.url "events/categories", end return_error_or_body(response, response.body.response.categories) end |