get_token | R Documentation |
This function is a wrapper for the OneMap Authentication Service API. It allows users to generate a API token from OneMap.Sg. Using the API requires that users have a registered email address with Onemap.Sg. Users can register themselves using OneMap.Sg's form.
get_token(email, password, hide_message = FALSE)
email |
User's registered email address. |
password |
User's password. |
hide_message |
Default = |
API token, or NULL if an error occurs. If error occurs, a warning message will be printed with the error code.
## Not run: get_token("user@example.com", "password")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.