Creating an API

Hi guys!

I'm a third year student from the Nelson Mandela Metropolitan University
and I'm in my 3rd year of my undergrad national diploma Information
Technology, majoring in Software Development. I'm in a group and we are
working on a project on the CommCareHQ platform. My query is this: How does
one go about creating an 3rd party API so that the information retrieved on
the mobile application from CommCareHQ is routed to my group's personal
database (for our third year project requirements)? We are programming
using Visual Studio 2010.

Kind regards
Dini

Hi Simon!

We are looking to develop a mobile app for a place called Emmanuel Care
Haven in an impoverished area in the Port Elizabeth region. What this app
will do is enable the carers to capture information about their visits to a
patient's house (in a visit, they just check up on the patient's health).
This information is sent to and stored in the CommCareHQ cloud server -
what we are trying to do is to find a way for the data captured in each
form to also get sent to our own database so we can populate it to enable
us to meet project requirements (as we are in 3rd year). I hope I'm coming
across clearly.

I had followed the links, I read up on the information and it's still foggy
at this stage.

Regards

··· On Wednesday, April 17, 2013 8:31:03 AM UTC+2, Dini Ngewu wrote: > > Hi guys! > > I'm a third year student from the Nelson Mandela Metropolitan University > and I'm in my 3rd year of my undergrad national diploma Information > Technology, majoring in Software Development. I'm in a group and we are > working on a project on the CommCareHQ platform. My query is this: How does > one go about creating an 3rd party API so that the information retrieved on > the mobile application from CommCareHQ is routed to my group's personal > database (for our third year project requirements)? We are programming > using Visual Studio 2010. > > Kind regards > Dini >

Hi Dini

We'd love to hear more about your project and what you're trying to do. We
do have some API's that you can use to get data out of CommCareHQ which are
documented on our wiki:
CommCare HQ APIs - CommCare Public - CommCare Public. I
think you should be able to get what you need from there.

Simon

··· On Wed, Apr 17, 2013 at 8:31 AM, Dini Ngewu wrote:

Hi guys!

I'm a third year student from the Nelson Mandela Metropolitan University
and I'm in my 3rd year of my undergrad national diploma Information
Technology, majoring in Software Development. I'm in a group and we are
working on a project on the CommCareHQ platform. My query is this: How does
one go about creating an 3rd party API so that the information retrieved on
the mobile application from CommCareHQ is routed to my group's personal
database (for our third year project requirements)? We are programming
using Visual Studio 2010.

Kind regards
Dini

--


You received this message because you are subscribed to the Google Groups
"CommCare Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to commcare-developers+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

--
Simon Kelly
Senior Engineer | Dimagi South Africa

I just have a simple question: when the form data is captured on the mobile
device and is sent to the CommCareHQ Cloud Server - how is the data
unpacked?

··· On Wednesday, April 17, 2013 8:31:03 AM UTC+2, Dini Ngewu wrote: > > Hi guys! > > I'm a third year student from the Nelson Mandela Metropolitan University > and I'm in my 3rd year of my undergrad national diploma Information > Technology, majoring in Software Development. I'm in a group and we are > working on a project on the CommCareHQ platform. My query is this: How does > one go about creating an 3rd party API so that the information retrieved on > the mobile application from CommCareHQ is routed to my group's personal > database (for our third year project requirements)? We are programming > using Visual Studio 2010. > > Kind regards > Dini >

Hi Dini

That sounds like an interesting project. How did you guys hear about
CommCare?

Given your use case perhaps a better approach would be to use the Data
Integration Feature which is outlined here:
https://wiki.commcarehq.org/display/commcarepublic/Enabling+Data+Integration.
This will allow you to have each now form or case sent to a URL of your
choosing. You can then insert it into your own database from there.

Cheers
Simon

··· On Wed, Apr 17, 2013 at 10:59 AM, Dini Ngewu wrote:

Hi Simon!

We are looking to develop a mobile app for a place called Emmanuel Care
Haven in an impoverished area in the Port Elizabeth region. What this app
will do is enable the carers to capture information about their visits to a
patient's house (in a visit, they just check up on the patient's health).
This information is sent to and stored in the CommCareHQ cloud server -
what we are trying to do is to find a way for the data captured in each
form to also get sent to our own database so we can populate it to enable
us to meet project requirements (as we are in 3rd year). I hope I'm coming
across clearly.

I had followed the links, I read up on the information and it's still
foggy at this stage.

Regards

On Wednesday, April 17, 2013 8:31:03 AM UTC+2, Dini Ngewu wrote:

Hi guys!

I'm a third year student from the Nelson Mandela Metropolitan University
and I'm in my 3rd year of my undergrad national diploma Information
Technology, majoring in Software Development. I'm in a group and we are
working on a project on the CommCareHQ platform. My query is this: How does
one go about creating an 3rd party API so that the information retrieved on
the mobile application from CommCareHQ is routed to my group's personal
database (for our third year project requirements)? We are programming
using Visual Studio 2010.

Kind regards
Dini

--


You received this message because you are subscribed to the Google Groups
"CommCare Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to commcare-developers+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

--
Simon Kelly
Senior Engineer | Dimagi South Africa

Hi Dini,

The form is sent via XML, and then converted to JSON via a couchdb update
handler (http://wiki.apache.org/couchdb/Document_Update_Handlers).

See:
https://github.com/dimagi/couchforms/blob/master/couchforms/_design/updates/xform.js

Cory

··· On Thu, May 9, 2013 at 1:29 AM, Dini Ngewu wrote:

I just have a simple question: when the form data is captured on the
mobile device and is sent to the CommCareHQ Cloud Server - how is the data
unpacked?

On Wednesday, April 17, 2013 8:31:03 AM UTC+2, Dini Ngewu wrote:

Hi guys!

I'm a third year student from the Nelson Mandela Metropolitan University
and I'm in my 3rd year of my undergrad national diploma Information
Technology, majoring in Software Development. I'm in a group and we are
working on a project on the CommCareHQ platform. My query is this: How does
one go about creating an 3rd party API so that the information retrieved on
the mobile application from CommCareHQ is routed to my group's personal
database (for our third year project requirements)? We are programming
using Visual Studio 2010.

Kind regards
Dini

--


You received this message because you are subscribed to the Google Groups
"CommCare Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to commcare-developers+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Well, my group and I were in need of a project idea that we'd all be sold
on. We spoke to one of our professors from the faculty, Professor Darelle
van Greunen, who is heavily involved with the Emmanuel Haven. She
introduced us to the concept of CommCareHQ and we had training conducted by
Andrea Fletcher on campus.

Thanks, I will follow the link.

··· On Wed, Apr 17, 2013 at 2:53 PM, Simon Kelly wrote:

Hi Dini

That sounds like an interesting project. How did you guys hear about
CommCare?

Given your use case perhaps a better approach would be to use the Data
Integration Feature which is outlined here:
https://wiki.commcarehq.org/display/commcarepublic/Enabling+Data+Integration.
This will allow you to have each now form or case sent to a URL of your
choosing. You can then insert it into your own database from there.

Cheers
Simon

On Wed, Apr 17, 2013 at 10:59 AM, Dini Ngewu ngewud@gmail.com wrote:

Hi Simon!

We are looking to develop a mobile app for a place called Emmanuel Care
Haven in an impoverished area in the Port Elizabeth region. What this app
will do is enable the carers to capture information about their visits to a
patient's house (in a visit, they just check up on the patient's health).
This information is sent to and stored in the CommCareHQ cloud server -
what we are trying to do is to find a way for the data captured in each
form to also get sent to our own database so we can populate it to enable
us to meet project requirements (as we are in 3rd year). I hope I'm coming
across clearly.

I had followed the links, I read up on the information and it's still
foggy at this stage.

Regards

On Wednesday, April 17, 2013 8:31:03 AM UTC+2, Dini Ngewu wrote:

Hi guys!

I'm a third year student from the Nelson Mandela Metropolitan University
and I'm in my 3rd year of my undergrad national diploma Information
Technology, majoring in Software Development. I'm in a group and we are
working on a project on the CommCareHQ platform. My query is this: How does
one go about creating an 3rd party API so that the information retrieved on
the mobile application from CommCareHQ is routed to my group's personal
database (for our third year project requirements)? We are programming
using Visual Studio 2010.

Kind regards
Dini

--


You received this message because you are subscribed to the Google Groups
"CommCare Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to commcare-developers+unsubscribe@googlegroups.com.

For more options, visit https://groups.google.com/groups/opt_out.

--
Simon Kelly
Senior Engineer | Dimagi South Africa

--


You received this message because you are subscribed to a topic in the
Google Groups "CommCare Developers" group.
To unsubscribe from this topic, visit
https://groups.google.com/d/topic/commcare-developers/6a86TH71m3I/unsubscribe?hl=en
.
To unsubscribe from this group and all its topics, send an email to
commcare-developers+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.