Reading Data From Aggregate Using The Brief Case API

Hello guys, I am implementing a project that will always query my aggregate database instance and return the submissions(responses from ODK collect) into my own application for onward processing. I realized ODK aggregate has no API end points specifically design for developers to be able to make API request to aggregate. I therefore came across the ODK Briefcase which has worked for some cases like getting the submissions ID via the URL: view/submissionList with query parameters as formId,cursor and numEntries. After this I needed to make use of view/downloadSubmission URL endpoint in order to retrieve data from aggregate with individual submissions ID returned from the above end point. The query parameter provided here which is: formid[@version=null and @uiVersion=null]/topElement[@key=idvalue] has not been clear to me and I have spent days trying to figure it out and its not working. I need help urgently to make this work. Can some please explain how I would use the above query parameter on the given url: view/downloadSubmission if e.g my form_id is: 1d2r34r and my submission ID is: 5tw4u4w.

To get more on what am talking about check here:

https://code.google.com/p/opendatakit/wiki/BriefcaseAggregateAPI#GET_view/submissionList

Please help me.
Regards.

This same API is used within Briefcase to download the individual
submissions. Look at the code there.

ยทยทยท On Mon, Mar 9, 2015 at 2:15 PM, wrote:

Hello guys, I am implementing a project that will always query my
aggregate database instance and return the submissions(responses from ODK
collect) into my own application for onward processing. I realized ODK
aggregate has no API end points specifically design for developers to be
able to make API request to aggregate. I therefore came across the ODK
Briefcase which has worked for some cases like getting the submissions ID
via the URL: view/submissionList with query parameters as formId,cursor and
numEntries. After this I needed to make use of view/downloadSubmission URL
endpoint in order to retrieve data from aggregate with individual
submissions ID returned from the above end point. The query parameter
provided here which is: formid[@version=null and
@uiVersion=null]/topElement[@key=idvalue] has not been clear to me and I
have spent days trying to figure it out and its not working. I need help
urgently to make this work. Can some please explain how I would use the
above query parameter on the given url: view/downloadSubmission if e.g my
form_id is: 1d2r34r and my submission ID is: 5tw4u4w.

To get more on what am talking about check here:

https://code.google.com/p/opendatakit/wiki/BriefcaseAggregateAPI#GET_view/submissionList

Please help me.
Regards.

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

--
Mitch Sundt
Software Engineer
University of Washington
mitchellsundt@gmail.com