Skip to contents

This is the helper function that other API functions will use. It retrieves the cached token, and if the token has expired, it automatically attempts to refresh it using the stored refresh token.

Usage

li_get_token(cache_path = ".httr-oauth")

Arguments

cache_path

Path to the cached token file. Defaults to .httr-oauth.

Value

A Token2.0 object, or NULL if no valid token can be found/refreshed.