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
Defined Under Namespace
Classes: Auth, Base, Event
Constant Summary
collapse
- BASE_URL =
'www.eventick.com.br/api'
- API_VERSION =
'v1'
- VERSION =
"0.0.5"
Class Method Summary
collapse
Class Method Details
.get(resource, opts) ⇒ Object
11
12
13
14
15
16
|
# File 'lib/simple_eventick_api.rb', line 11
def self.get(resource, opts)
url = "https://#{BASE_URL}/#{API_VERSION}/#{resource}.json"
response = HTTParty.get(url, opts)
parse(response.body)
end
|