Skip to contents

Before you use other functions in this package to get data from Aquarius, you must use this function to log in. If accessing NPS data, you must be on the DOI network and you only need to provide the read-only username and password.

Usage

connectToAquarius(
  username,
  password = keyring::key_get("aquarius", username),
  hostname = "https://aquarius.nps.gov/aquarius",
  publish_api_url = "https://aquarius.nps.gov/aquarius/Publish/v2"
)

Arguments

username

The AQTS credentials username

password

The AQTS credentials password

hostname

A server name or IP address

publish_api_url

URL for the Aquarius Publish API.

Value

Invisibly returns server response

Examples

if (FALSE) {
keyring::key_set("aquarius", "aqreadonly")  # Save credentials in keyring - only need to do this once per user & computer
connectToAquarius("aqreadonly")  # Connect to Aquarius using password saved in keyring
}