getToken | R Documentation |
This function tries to connect to the NI database API and retrieves a token that is later used to communicate with the database.
getToken(
username = NULL,
password = NULL,
url = "https://www8.nina.no/NaturindeksNiCalc"
)
username |
character Your username |
password |
character Your password |
url |
character API address. |
The function sets the variables niToken and url, which both are used in other functions that communicate with the database through the API.
Jens Åström
## Not run:
getToken("test.user", "test.password")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.