def send_request(method, args)
      request = API::Request.new(method, build_url(method, args), config.api_key) do |r|
        r.data = args[:json] if args[:json]
        r.ref = args[:ref] if args[:ref]
      end
      request.perform
    end
def send_request(method, args)
      request = API::Request.new(method, build_url(method, args), config.api_key) do |r|
        r.data = args[:json] if args[:json]
        r.ref = args[:ref] if args[:ref]
      end
      request.perform
    end
Initialize and return a new Client instance. Optionally, configure
 options for the instance by passing a Configuration object. If no
 custom configuration is provided, the configuration options from
 Orchestrate.config will be used.

 Creates the Request object and sends it via the perform method,
 which generates and returns the Response object.