kobotools_kpi_data | R Documentation |
'kobotools_kpi_data' is a wrapper for kobotoolbox API 'https://[URL]/api/v2/assets/[assetid]/data/'
kobotools_kpi_data(
assetid,
url = "eu.kobotoolbox.org",
uname = "",
pwd = "",
encoding = "UTF-8",
format = "json"
)
assetid |
is the asset id of the asset for which the data is to be downloaded. The id can be found by running [kobotools_data_list_kc()] |
url |
The '[kpi-url]' of kobotoolbox. Default is "eu.kobotoolbox.org" |
uname |
is username of your kobotoolbox account |
pwd |
is the password of the account |
encoding |
is the encoding to be used. Default is "UTF-8". |
format |
lets you define the format of output for e.g. json or xml |
The function takes the url as one of the inputs. And asset id as another. Both are strings. The asset id is found by running the [kobotools_api()] function.Other parameters are username and password.
The function returns the data in json format
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.