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