% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/tokens.R
\name{af_get_token}
\alias{af_get_token}
\title{Retrieve a stored API token}
\usage{
af_get_token(name, service = "apifetch")
}
\arguments{
\item{name}{The identifier for this token (e.g. a dataset or resource name).}

\item{service}{A namespace prefix grouping tokens for one API. Default
\code{"apifetch"}.}
}
\value{
The token string, or \code{NULL} if not found.
}
\description{
Retrieves the token stored for \code{name} under \code{service}. Returns \code{NULL}
(with a warning) rather than erroring when no token is found.
}
\examples{
token <- af_get_token("dengue", service = "BigDataPE")
}
