Class: Eventick::API

Inherits:
Object
  • Object
show all
Includes:
HTTParty
Defined in:
lib/eventick.rb

Instance Method Summary collapse

Instance Method Details

#attendees(token, event_id) ⇒ Object



25
26
27
28
# File 'lib/eventick.rb', line 25

def attendees(token, event_id)
  response = get("/events/#{event_id}/attendees.json", token)
  response.parsed_response['attendees']
end

#event(token, id) ⇒ Object



20
21
22
23
# File 'lib/eventick.rb', line 20

def event(token, id)
  response = get("/events/#{id}.json", token)
  response.parsed_response['events']
end

#events(token) ⇒ Object



15
16
17
18
# File 'lib/eventick.rb', line 15

def events(token)
  response = get('/events.json', token)
  response.parsed_response['events']
end

#token(email, password) ⇒ Object



10
11
12
13
# File 'lib/eventick.rb', line 10

def token(email, password)
  response = get('/tokens.json', email, password)
  response.parsed_response['token']
end