api_login | R Documentation |
Log in EcoTaxa
api_login(username, password, cache = TRUE)
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 |
The token string, invisibly. It also stores to token string in the file defined by api_token_path()
if cache=TRUE
(the default).
# 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())
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.