ns_has_auth | R Documentation |
This function verifies whether the required system variables ('NETTSKJEMA_CLIENT_ID' and 'NETTSKJEMA_CLIENT_SECRET') are set to enable authentication with the Nettskjema API. It provides feedback on the setup status and returns whether the system is correctly configured.
ns_has_auth(
client_id = Sys.getenv("NETTSKJEMA_CLIENT_ID"),
client_secret = Sys.getenv("NETTSKJEMA_CLIENT_SECRET")
)
client_id |
[character] The client ID provided by Nettskjema. |
client_secret |
[character] The client secret provided by Nettskjema. |
Logical. Returns 'TRUE' if both environment variables are set, otherwise 'FALSE'.
For more information about authentication setup, see: https://www.capro.dev/nettskjemar/articles/authentication.html
ns_has_auth()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.