api_login: Log in EcoTaxa

View source: R/api_login.R

api_loginR Documentation

Log in EcoTaxa

Description

Log in EcoTaxa

Usage

api_login(username, password, cache = TRUE)

Arguments

username

your EcoTaxa username (i.e. email address).

password

your EcoTaxa password, as text.

cache

whether to store the token in a file, determined by api_token_path(). This is TRUE by default and allows other functions to reuse the token.

Value

The token string, invisibly. It also stores to token string in the file defined by api_token_path() if cache=TRUE (the default).

Examples

# log in and get a token
token <- api_login(username="ecotaxa.api.user@gmail.com", password="test!")
token
# check where the token is stored
api_token_path()
readLines(api_token_path())

jiho/ecotaxar documentation built on Jan. 16, 2024, 12:26 a.m.