Authenticates with the Pelagic Analytics API using username and password
to obtain an access token for subsequent API calls.
Usage
pelagic_auth(
username,
password,
base_url = "https://analytics.pelagicdata.com"
)
Arguments
- username
Character. Your Pelagic Analytics username
- password
Character. Your Pelagic Analytics password
- base_url
Character. Base URL for the API. Default is "https://analytics.pelagicdata.com"
Value
List containing the access token and refresh token
Examples
if (FALSE) { # \dontrun{
auth_response <- pelagic_auth("your_username", "your_password")
token <- auth_response$token
} # }