ns_req_auth | R Documentation |
After creating a client in Nettskjema, this function will retrieve the access token needed for the remaining processes in the package. Automatically caches the token for more efficient API usage.
ns_req_auth(
req,
client_id = Sys.getenv("NETTSKJEMA_CLIENT_ID"),
client_secret = Sys.getenv("NETTSKJEMA_CLIENT_SECRET"),
client_name = "nettskjemar"
)
req |
An httr2 request, usually |
client_id |
Character. Retrieved from the Client portal. |
client_secret |
Character. Retrieved from the Client portal. |
client_name |
Character. Used to identify who has been running the commands. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.