prevedere_fetch: Query the Prevedere API

Description Usage Arguments Value See Also Examples

View source: R/fetch.R

Description

Send a GET request to the Prevedere API. Most users should calling this function directly and instead use the appropriate wrapper for accessing each part of the API.

Usage

1
prevedere_fetch(key, path, payload = NULL)

Arguments

key

A Prevedere API key.

path

The path (within the API) to which the request will be sent.

payload

The payload for the request. This should be a named list.

Value

The result of the API request.

See Also

GET, content, response

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
## Not run: 
prevedere_fetch(
  key = "1235467abcdefg",
  path = "/indicator/BLS/CES3133231058",
  payload = list(
    Frequency = "Annual",
    Calculation = "None",
    Offset = 0
  )
)

k <- "1235467abcdefg"
prevedere_fetch(
  key = k,
  path = "/indicator/BLS/CES3133231058",
  payload = list(
    Frequency = "Annual",
    Calculation = "None",
    Offset = 0
  )
)

## End(Not run)

prevederer documentation built on July 23, 2019, 5:05 p.m.