Obtain form info in order to correctly retrieve the form.

kobo_forminfo(formid, user = NULL, api = api)

Arguments

formid

The ID of the form to be accessed (as a character string).

user

Optional. A single string indicating the username and password (in the form of "username:password"), or a character vector or list, length 2, with the first value being the "username", and the second being the "password".

api

The URL at which the API can be accessed. Defaults to "unhcr", which loads the UNHCR KoBo Toolbox API.

Value

A "data.table" with the full forminfo. The forminfo would be named in the form of "data_formid".

The URL of the form based on form id.

Author

Edouard Legoupil

Examples

if (FALSE) { kobo_forminfo("15051") kobo_forminfo("31511", api = "unhcr") }