module Falconz::REST::GET
HTTP 1.1 GET
request method to make on the API endpoint.
This is a module that is used in pretty much all the API modules in order to talk to the API endpoint.
Public Instance Methods
get_request(path)
click to toggle source
# File lib/falconz/rest/get.rb, line 8 def get_request(path) response = HTTParty.get(url + path, headers: header) return response if response.success? raise RuntimeError, response end