token: Create Authentication Token

Description Usage Arguments Value Examples

View source: R/auth.R

Description

Create Authentication Token

Usage

1
2
token(scope = c("accounts", "transactions"), force_new = FALSE,
  market = "SE", provider = NULL, username = NULL)

Arguments

scope

Required character vector. Possible scopes are "accounts", "transactions", "investments". Multiple scopes can be used in same token.

force_new

Required logical. Should new token be requested even though cache exist? If there has been a while since token cache was created, then this probably needs to be TRUE.

market

Required string. Market (country) in which bank is accessed.

provider

Optional string. Unique name of provider (eg. sbab-bankid). If this is provided, the provider will be chosen for the user. If not, the user can select a provider in a list.

username

Optional string. If this is provided, the username field will be pre-filled. If not, the user can type it in.

Value

An httr::oauth2.0_token object.

Examples

1
2
3
token("accounts")
token(c("accounts", "transactions"))
token("accounts", force_new = TRUE)

jacobferlin/tinkr documentation built on Dec. 29, 2019, 4:01 p.m.