covalent_api_call {cryptotrackr} | R Documentation |
covalent_api_call
Description
covalent_api_call
Usage
covalent_api_call(url, method, query = NULL, csv = FALSE, timeout_seconds = 60)
Arguments
url |
the Covalent URL for use in your API call |
method |
'GET' or 'POST' |
query |
your query parameters formatted as a named list |
csv |
'TRUE' will return csv data parsed as a dataframe while 'FALSE' will return json data. The default value is 'FALSE'. |
timeout_seconds |
seconds until the query times out. Default is 60. |
Value
returns your Covalent API data
Examples
## Not run:
url <- "https://api.covalenthq.com/v1/1/address/trevorfrench.eth/balances_v2/"
api_key <- "..."
query <- list(key = api_key, format = NULL)
method <- "GET"
balances <- covalent_api_call(url, method, api_key, method, query, csv = FALSE)
## End(Not run)
[Package cryptotrackr version 1.3.3 Index]