covalent_api_call | R Documentation |
covalent_api_call
covalent_api_call(url, method, query = NULL, csv = FALSE, timeout_seconds = 60)
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. |
returns your Covalent API data
## 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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.