get_quota_from | R Documentation |
Obtain info about the API quota used
get_quota_from(service = c("meteocat"), options)
service |
Character with the service name (in lower case). |
options |
List with the needed service options. See |
Depending on the service, some APIs allows only a number of data requests. This function access the user quota numbers in the services that allow for this, (currently only MeteoCat)
A data frame with the quota info
if (identical(Sys.getenv("NOT_CRAN"), "true")) {
library(meteospain)
library(keyring)
# MeteoCat (we need a key)
# key_set('meteocat')
api_options <- meteocat_options(api_key = key_get('meteocat'))
get_quota_from('meteocat', api_options)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.