lib/stack_path/client.rb
# The constant headers that are sent with each request
The constant headers that are sent with each request
The constant headers that are sent with each request
def request(method, path, params = {})
      options = {
        method: method,
        uri: "#{base_url}#{path}",
        headers: HEADERS
      }
      options[:body] = JSON.dump(params) if params.any?
      JSON.parse(response_from(options).body)
    end
def request ( method , path , params = { } ) options = { method : method , uri : "#{base_url}#{path}" , headers : HEADERS } options [ :body ] = JSON . dump ( params ) if params . any? JSON . parse ( response_from ( options ) . body ) end
The constant headers that are sent with each request
The constant headers that are sent with each request
method
path
params