Skip to contents

Establishes an anonymous session with the public VIGIAR Power BI dashboard, obtaining the cookies and session token required for subsequent data queries. Also fetches the conceptual schema (table and column metadata).

Usage

vigiar_conectar(refresh = FALSE, timeout = 30, max_retries = 3)

Arguments

refresh

If TRUE, forces a new session even if one exists.

timeout

Maximum time in seconds to establish the connection.

max_retries

Maximum number of retry attempts on transient failures.

Value

Invisibly, a list with session data.

Examples

# \dontrun{
vigiar_conectar()
#> Sessao VIGIAR ja esta ativa. Use refresh = TRUE para renovar.
vigiar_sessao_ativa()
#> [1] TRUE
vigiar_desconectar()
#> Sessao VIGIAR encerrada.
# }