Module: FoursquareNext::Events
- Included in:
- Client
- Defined in:
- lib/foursquare_next/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
7 8 9 10 11 12 |
# File 'lib/foursquare_next/events.rb', line 7 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.
16 17 18 19 20 21 |
# File 'lib/foursquare_next/events.rb', line 16 def event_categories( = {}) response = connection.get do |req| req.url "events/categories", end return_error_or_body(response, response.body.response.categories) end |