View source: R/refresh_token.R
refresh_token | R Documentation |
Refresh Oauth 2.0 Token
refresh_token(
endpoint,
app,
credentials,
user_params = NULL,
use_basic_auth = FALSE
)
endpoint |
the endpoint to authenticae against |
app |
the app to autheticate |
credentials |
the credentials list from a token generated by get_token |
user_params |
user parameters to send with request |
use_basic_auth |
should basic authorization be used - don't know what this does |
This function is baseed upon httr:::refresh_oauth2.0 which doesn't parse the credentials into a list. An additional call to rjson::fromJSON has been added to parse the credentials correctly
a list of refreshed credentials
https://rdrr.io/cran/httr/src/R/oauth-refresh.R https://cran.r-project.org/package=httr
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.