rest_get_method | R Documentation |
This function performs a generic REST GET request to the specified API endpoint. It takes an API key, endpoint, URI, and querystring as input and returns the response data in JSON format.
rest_get_method(api_key, endpoint = "", uri = "", querystring = list())
api_key |
A character string representing the API key for authentication. |
endpoint |
A character string representing the API endpoint to request. |
uri |
A character string representing the URI for the request. |
querystring |
A list of key-value pairs representing the query parameters for the request. |
The response data in JSON format.
api_key <- "demo"
endpoint <- "bond-fundamentals"
uri <- "DE000CB83CF0"
querystring <- list()
result <- rest_get_method(api_key, endpoint, uri, querystring)
print(result)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.