Module: SimpleEventickApi
- Defined in:
- lib/simple_eventick_api.rb,
lib/simple_eventick_api/auth.rb,
lib/simple_eventick_api/base.rb,
lib/simple_eventick_api/event.rb,
lib/simple_eventick_api/version.rb,
lib/simple_eventick_api/attendee.rb
Defined Under Namespace
Classes: Attendee, Auth, Base, Event
Constant Summary collapse
- BASE_URL =
'www.eventick.com.br/api'- API_VERSION =
'v1'- VERSION =
"0.0.8"
Class Method Summary collapse
Class Method Details
.get(resource, opts) ⇒ Object
12 13 14 15 16 17 18 19 |
# File 'lib/simple_eventick_api.rb', line 12 def self.get(resource, opts) url = "https://#{BASE_URL}/#{API_VERSION}/#{resource}.json" puts "url: #{url}" response = HTTParty.get(url, opts) parse(response.body) end |