GoogleApiRequest: GoogleApiRequest

Description Usage Arguments Details

Description

Perform an Google API request and return the results

Usage

1
2
  GoogleApiRequest(req_type, base_url, oauth,
    rel_path = NULL, query = NULL, body_list = NULL)

Arguments

req_type

Character string specifying the type of http request to perform: "GET", "POST", "PUT", or "DELETE".

oauth

The httr OAuth2.0 token reference class object to use for authentication.

body_list

optional An R list object containing the name value pairs for the body of the request, where applicable. This list is coverted into JSON by the GpApiRequest function.

Details

Construct and perform an HTTP request to the selected Google API. Transform the JSON output into an R list.


jdeboer/grealtime documentation built on May 19, 2019, 8:24 a.m.