This function sets a global option ynab_token for use in many other function calls. It should be the first function called as other functions will not work without a proper token. It also sets the base_url option, including the YNAB api version (currently v1).

ynab_set_token(token = NULL)

Arguments

token

This can be the 64 alphanumeric personal access token from the YNAB registration process. If left blank, the ynab_token option will be set from the environment variable YNAB_TOKEN.

Value

No return value

Details

The token is obtained through a registration process on the YNAB website. The token is a 64 character long alphanumeric string.