Description Usage Arguments Value See Also Examples
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.
1 | prevedere_fetch(key, path, payload = NULL)
|
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. |
The result of the API request.
GET, content, response
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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.