[Stable]

tsc_setup(
  api_url = NULL,
  api_token = NULL,
  test_api_url = NULL,
  test_api_token = NULL,
  verbose = NULL
)

Arguments

api_url

A TSC API URL (optional), default: get_tsc_api_url.

api_token

A TSC API token, leading with "Token "

test_api_url

A TSC API URL for tests (optional), default: get_tsc_test_api_url

test_api_token

A TSC API token for tests, leading with "Token " (character). Default: get_tsc_api_token.

verbose

Verbosity for tscr.

Details

tscr_setup sets TSC API connection details. tscr's functions default to use the default URL, but require an API Token to work.

See also

Other settings: tsc_settings()

Examples

# TSC users can access their TSC API Token on their profile page on TSC.
# Not specifying the default TSC API URL will reset the TSC URL to its
# default "https://tsc.dbca.wa.gov.au/api/1/":
tsc_setup(api_token = "Token xxx")