getAccessToken: Get an access token from the 'Impect' Customer API

View source: R/getAccessToken.R

getAccessTokenR Documentation

Get an access token from the 'Impect' Customer API

Description

Get an access token from the 'Impect' Customer API

Usage

getAccessToken(
  username,
  password,
  token_url =
    "https://login.impect.com/auth/realms/production/protocol/openid-connect/token"
)

Arguments

username

your 'IMPECT' username

password

your 'IMPECT' password

token_url

host specific token url

Value

a string containing a bearer token

Examples

# Toy example: this will error quickly (no credentials)
try(getAccessToken(username = "invalidUser", password = "invalidPassword"))

# Real usage: requires valid credentials
## Not run: 
  token <- getAccessToken(username = "yourUsername", password = "yourPassword")

## End(Not run)

impectR documentation built on Dec. 17, 2025, 5:09 p.m.