Skip to contents

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. NULL follows the transferegovr.cache option. See tg_cache_dir().

.base_url

The API base URL. Defaults to tg_base_url().

Value

A POSIXct in UTC.

Examples

if (interactive()) {
  tg_updated_at("parcerias")
}