Circle CI HTTP RequestsSource:
Workhorse function for executing API requests to Circle CI.
circle( verb = "GET", path = "", query = list(), body = "", api_version = "v2", encode = "json" )
A character string containing an HTTP verb, defaulting to
A character string with the API endpoint (should begin with a slash).
A list specifying any query string arguments to pass to the API. This is used to pass the API token.
A named list or array of what should be passed in the request. Corresponds to the "-d" argument of the
A character string specifying the Circle CI API version. This usually does not need to be changed by the user.
Encoding format. See httr::POST.
An object of class
circle_api with the following elements
response(HTTP response information)
In almost all cases, users should not need to execute API calls directly. However, if desired this functions makes it possible to issue any API request. If you experience calling a custom request heavily, consider opening a feature request on GitHub.