Module: FoursquareNext::Events

Included in:
Client
Defined in:
lib/foursquare_next/events.rb

Instance Method Summary collapse

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, options = {})
  response = connection.get do |req|
    req.url "events/#{event_id}", options
  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(options = {})
  response = connection.get do |req|
    req.url "events/categories", options
  end
  return_error_or_body(response, response.body.response.categories)
end