kobo_token | R Documentation |
Get your KoboToolbox API token from your username and password.
kobo_token(username = NULL, password = NULL, url = NULL, overwrite = FALSE)
username |
character, KoboToolbox account username. |
password |
character, KoboToolbox account password. |
url |
character, KoboToolbox server URL. |
overwrite |
logical, if |
A character
, the KoboToolbox API token. It also stores, as a side effect,
the URL and token as the environment variables KOBOTOOLBOX_URL
and
KOBOTOOLBOX_TOKEN
respectively.
## Not run:
# use your own KoboToolbox URL, username and password
if (require(askpass)) {
token <- kobo_setup(username = "cool_user_name",
password = askpass::askpass(),
url = "https://kf.kobotoolbox.org/")
token
}
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.