Description Usage Arguments Value Author(s) Examples
Obtain a token from CalPASS using your API credentials, which should allow access for 60 minutes.
1 2 3 4 5 6 7 8 | calpass_get_token(
username = Sys.getenv("cp_api_uid"),
password = Sys.getenv("cp_api_pwd"),
client_id,
scope,
auth_endpoint = "https://oauth.calpassplus.org/connect/token",
verbose = FALSE
)
|
username |
API username. For security reasons, the user could specify |
password |
API password. The user could specify |
client_id |
parameter needed in the http body in order to obtain a token (unique to |
scope |
parameter needed in the http body in order to obtain a token (unique to |
auth_endpoint |
Authentication endpoint/url, defaults to |
verbose |
If |
CalPASS token string
Vinh Nguyen
1 2 3 4 5 6 7 | ## Not run:
cp_token <- calpass_get_token(username='my_cp_api_uid', password='my_cp_api_pwd'
, client_id='my_client_id'
, scope='my_scope'
)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.