def request(method, path, params = {})
      headers = {}

      headers['Authorization'] = "Bearer #{access_token}" if access_token

      result = RestClient::Request.execute(
        method: method,
        url: url_base + path,
        payload: params,
        headers: headers,
        ssl_version: 'TLSv1'
      )
      result = JSON.parse(result)
      errors = result['errors']
      raise "Vagrant Cloud returned error: #{errors}" if errors

      result
    end
def request(method, path, params = {})
      headers = {}

      headers['Authorization'] = "Bearer #{access_token}" if access_token

      result = RestClient::Request.execute(
        method: method,
        url: url_base + path,
        payload: params,
        headers: headers,
        ssl_version: 'TLSv1'
      )
      result = JSON.parse(result)
      errors = result['errors']
      raise "Vagrant Cloud returned error: #{errors}" if errors

      result
    end
--------------------
 Old Box API Helpers
--------------------
 REMOVED IN FAVOR OF CLIENT CLASS, but still exists to support any old clients

 @param [String] method
 @param [String] path
 @param [Hash] params
 @return [Hash]