This function initializes an OAuth2 client using the `httr2::oauth_client` function. It is used to authenticate and interact with the Nettskjema API.
Examples
# Example: Initialize an OAuth2 client for Nettskjema
client <- ns_client(
client_id = "your_client_id",
client_secret = "your_client_secret"
)
# Using a custom client name
client <- ns_client(
client_id = "your_client_id",
client_secret = "your_client_secret",
client_name = "custom_client_name"
)