Skip to contents

Retrieves the token stored for name under service. Returns NULL (with a warning) rather than erroring when no token is found.

Usage

af_get_token(name, service = "apifetch")

Arguments

name

The identifier for this token (e.g. a dataset or resource name).

service

A namespace prefix grouping tokens for one API. Default "apifetch".

Value

The token string, or NULL if not found.

Examples

token <- af_get_token("dengue", service = "BigDataPE")
#> ! No token found for "dengue" (service "BigDataPE").