trackdown_token: Produce configured token

View source: R/trackdown_auth.R

trackdown_tokenR Documentation

Produce configured token

Description

For internal use or for those programming around the trackdown API. Returns a token pre-processed with httr::config(). Most users do not need to handle tokens "by hand" or, even if they need some control, trackdown_auth() is what they need. If there is no current token, trackdown_auth() is called to either load from cache or initiate OAuth2.0 flow. If auth has been deactivated via trackdown_deauth(), trackdown_token() returns NULL.

Usage

trackdown_token()

Value

A request object (an S3 class provided by httr).

See Also

Other low-level API functions: trackdown_has_token()

Examples

## Not run: 
trackdown_token()

## End(Not run)


ekothe/trackdown documentation built on June 28, 2023, 4:57 p.m.