Extract submission data using the API

39 views
Skip to first unread message

Michael Bukachi

unread,
Oct 7, 2018, 4:57:12 AM10/7/18
to KoBoToolbox Users
I've noticed that different kobo forms have different structures thus causing the json got from submissions to have different structures according to the form structure.
Is there a generic method anyone has come up with which works with all forms? Or do I just have to stick to writing a data extractor per form?

Thanks in advance

Punya Sapkota

unread,
Oct 7, 2018, 2:50:52 PM10/7/18
to KoBoToolbox Users
Dear Michael,

I use R-Script to download submitted data in CSV format using API. Code and working examples are available in https://github.com/ppsapkota/kobohr_apitoolbox and https://github.com/ppsapkota/kobohrtoolbox. I hope this helps.


Best regards,
Punya

Michael Bukachi

unread,
Oct 7, 2018, 2:57:36 PM10/7/18
to KoBoToolbox Users
Do the scripts work for all forms or do you have to customize it per form?

Punya Sapkota

unread,
Oct 7, 2018, 3:19:31 PM10/7/18
to KoBoToolbox Users
It is a pretty standard approach to fetch data using KoBo API. It works for all forms. I have been using it for different KoBo projects.



On Sunday, October 7, 2018 at 11:57:12 AM UTC+3, Michael Bukachi wrote:

palistha prajapati

unread,
Oct 7, 2018, 11:20:26 PM10/7/18
to kobo-...@googlegroups.com
Dear Michael,
     I installed KoboToolBox server version on my local computer (Ubuntu) and intend to test it as a server. When I docker-compose up,it returns

Error when try to start nginx container (Bind for 0.0.0.0:80 failed: port is already allocated.)

Then i changed port 80 to 81 (ports: - 81:81) in docker-compose.yml. After I docker-compose up and tried docker-compose ps, everything shows 'done', which I think means normally running. However I could not open KoboToolBox on my browsers with the address I typed in, which is '172.17.0.1' and '127.0.0.1'. I tried a lot but unable to run on my browser


--
You received this message because you are subscribed to the Google Groups "KoBoToolbox Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to kobo-users+...@googlegroups.com.
To post to this group, send email to kobo-...@googlegroups.com.
Visit this group at https://groups.google.com/group/kobo-users.
For more options, visit https://groups.google.com/d/optout.

palistha prajapati

unread,
Oct 7, 2018, 11:30:38 PM10/7/18
to kobo-...@googlegroups.com
Please anyone help me out.

Reply all
Reply to author
Forward
0 new messages