get_quota_from {meteospain} | R Documentation |
Get api quota info
Description
Obtain info about the API quota used
Usage
get_quota_from(service = c("meteocat"), options)
Arguments
service |
Character with the service name (in lower case). |
options |
List with the needed service options. See |
Details
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)
Value
A data frame with the quota info
Examples
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)
}
[Package meteospain version 0.1.4 Index]