Skip to contents

get_auth() allows obtaining an authorization token string from the ScPCA API, after providing an email address and agreeing to the terms of use.

Usage

get_auth(email, agree = FALSE)

view_terms()

Arguments

email

The user's email address

agree

A logical indicating whether the user agrees to the terms of service

Value

A string containing the authorization token

Details

To view the terms of use before agreeing to them, use view_terms(), which opens the terms of use page in a web browser.

Examples

if (FALSE) { # \dontrun{
# Get a token (make sure to agree to the terms of service)
auth_token <- get_auth("your.email@example.com", agree = TRUE)
} # }

if (FALSE) { # \dontrun{
view_terms()
} # }