travisHTTP: Travis-CI HTTP Requests

Description Usage Arguments Details Value

Description

This is the workhorse function for executing API requests for Travis-CI.

Usage

1
2
3
travisHTTP(verb = "GET", path = "", query = list(), body = "",
  base = c("https://api.travis-ci.org", "https://api.travis-ci.com"),
  token = Sys.getenv("TRAVIS_CI_TOKEN"), ...)

Arguments

verb

A character string containing an HTTP verb, defaulting to “GET”.

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.

body

A character string of request body data.

base

A character string specifying the base URL for the API.

token

A character string containing a Travis-CI API token. If missing, defaults to value stored in environment variable TRAVIS_CI_TOKEN.

...

Additional arguments passed to an HTTP request function, such as GET.

Details

This is mostly an internal function for executing API requests. In almost all cases, users do not need to access this directly.

Value

A list.


cloudyr/travisci documentation built on May 13, 2019, 8:22 p.m.