Method: MagicBell::ApiOperations#get
- Defined in:
- lib/magicbell/api_operations.rb
#get(url, options = {}) ⇒ Object
5 6 7 8 9 10 11 |
# File 'lib/magicbell/api_operations.rb', line 5 def get(url, = {}) defaults = { headers: default_headers } response = HTTParty.get(url, .merge(defaults)) raise_http_error_unless_2xx_response(response) response end |