travis | R Documentation |
This is the workhorse function for executing API requests for Travis CI.
travis( verb = "GET", path = "", query = list(), body = "", endpoint = get_endpoint(), encode = "json" )
verb |
A character string containing an HTTP verb, defaulting to |
path |
A character string with the API endpoint (should begin with a slash). |
query |
A list specifying any query string arguments to pass to the API. This is used to pass the API token. |
body |
A named list or character string of what should be passed in the
request. Corresponds to the "-d" argument of the |
endpoint |
|
encode |
Encoding format. See httr::POST. |
This is mostly an internal function for executing API requests. In almost all cases, users do not need to access this directly.
The JSON response, or the relevant error.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.