Linking ODK collector with Kobotoolbox server

Just to add to @Kal_Lam, and especially if you want to try and use Kobo with ODK-X tools, KoboToolbox - or more specifically Kobocat - conforms to the OpenRosa spec. So you can in fact connect to it using anything (eg ODK Collect) that talks the OpenRosa API, even command-line tools like the ubiquitous curl. Note that Kobo accepts OpenRosa basic authentication, so always connect via https to avoid sending your cleartext password over the wire! [I dont happen to know if Kobo supports OpenRosa digest authentication…]

For example, this will retrieve my (aka ‘tiritea’) list of forms:

USERNAME="tiritea"
HOST="https://kc.kobotoolbox.org/$USERNAME"
PASSWORD="**********"
BASIC=$(echo -n $USERNAME:$PASSWORD | base64)

curl -H "Authorization: Basic $BASIC" $HOST/formList

returning:

<?xml version="1.0" encoding="utf-8"?>
<xforms xmlns="http://openrosa.org/xforms/xformsList">
<xform>
    <formID>aQLKz445DQ53os7aD5EkpU</formID>
    <name>Widgets</name>
    <majorMinorVersion/>
    <version/>
    <hash>md5:3306c5b68decce525e1f62386bd2b157</hash>
    <descriptionText>Widgets</descriptionText>
    <downloadUrl>https://kc.kobotoolbox.org/tiritea/forms/129588/form.xml</downloadUrl>
    <manifestUrl>https://kc.kobotoolbox.org/tiritea/xformsManifest/129588</manifestUrl>
</xform>
<xform>
    <formID>aQYQykQhyJn2cZ9uoCeW2c</formID>
    <name>MPI Food Premises Verification</name>
    <majorMinorVersion/>
    <version/>
    <hash>md5:c5404e7ff41909a9a20c2737e17a7b74</hash>
    <descriptionText>MPI Food Premises Verification</descriptionText>
    <downloadUrl>https://kc.kobotoolbox.org/tiritea/forms/130393/form.xml</downloadUrl>
    <manifestUrl>https://kc.kobotoolbox.org/tiritea/xformsManifest/130393</manifestUrl>
</xform>
</xforms>
2 Likes