Learn R Programming

robotoolbox (version 1.4)

kobo_token: Get your KoboToolbox API token

Description

Get your KoboToolbox API token from your username and password.

Usage

kobo_token(username = NULL, password = NULL, url = NULL, overwrite = FALSE)

Value

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.

Arguments

username

character, KoboToolbox account username.

password

character, KoboToolbox account password.

url

character, KoboToolbox server URL.

overwrite

logical, if TRUE, it overwrites the existing token. Default to FALSE.

Examples

Run this code
if (FALSE) {
# 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
 }
}

Run the code above in your browser using DataLab