Skip to contents

Set API base URL and optionally load stored credentials. The URL can also be set via the METASURVEY_API_URL environment variable, and the token via METASURVEY_TOKEN.

Usage

configure_api(url)

Arguments

url

API base URL (e.g., "https://metasurvey-api.example.com")

Value

Invisibly, the previous URL (for restoring).

Examples

# \donttest{
configure_api(url = "https://metasurvey-api.example.com")
#> API configured: https://metasurvey-api.example.com
# }