Each module publishes the timestamp of its last load. It is the only
freshness signal these APIs give: they send no ETag, Cache-Control or
Last-Modified header.
Usage
tg_updated_at(module, .cache = NULL, .base_url = NULL)
tg_atualizado_em(module, .cache = NULL, .base_url = NULL)Arguments
- module
A module name from
tg_modules():"especiais","fundoafundo"or"parcerias". Aliases such as"fundo_a_fundo"are accepted.- .cache
Whether to serve the request from the response cache.
NULLfollows thetransferegovr.cacheoption. Seetg_cache_dir().- .base_url
The API base URL. Defaults to
tg_base_url().
See also
Other discovery:
tg_fields(),
tg_modules(),
tg_params(),
tg_schema_date(),
tg_tables()
Examples
if (interactive()) {
tg_updated_at("parcerias")
}