View source: R/getAccessToken.R
| getAccessToken | R Documentation |
Get an access token from the 'Impect' Customer API
getAccessToken(
username,
password,
token_url =
"https://login.impect.com/auth/realms/production/protocol/openid-connect/token"
)
username |
your 'IMPECT' username |
password |
your 'IMPECT' password |
token_url |
host specific token url |
a string containing a bearer token
# 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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.