Form Multimedia API

I’m using the commcare export tool to build a database of all my form
submissions. One of my new forms has a signature capture field. Is there a
way to use the export tool to retrieve the signature .jpg file? Or is there
another API I can use? The only way I have found so far is to use the
CommCare HQ site and download the multimedia for the form on the Data ->
Export Forms page. Thanks.

Hey,

The export tool does not currently support this, but there is an
(undocumented) API you can use to download multimedia zips of individual
form types. You can read about that on the prior thread here
https://groups.google.com/forum/#!searchin/commcare-users/multimedia$20android/commcare-users/FqicJN0vH78/WY1FDPIHCakJ

Cory

··· On Fri, May 15, 2015 at 9:34 PM, wrote:

I’m using the commcare export tool to build a database of all my form
submissions. One of my new forms has a signature capture field. Is there a
way to use the export tool to retrieve the signature .jpg file? Or is there
another API I can use? The only way I have found so far is to use the
CommCare HQ site and download the multimedia for the form on the Data ->
Export Forms page. Thanks.


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

Hi Cory,

Thanks for your response. I am able to create a url that works when pasted
in the browser. However, when using curl or wget, all I am able to retrieve
is html of a page, rather than the jpeg files. I’ve been able to use curl
with the form API, so I’m not sure what I’m doing wrong. Any ideas?

curl -u -X GET
https://www.commcarehq.org/a/spatialrepellents/reports/form_data/download/media/?app_id=623d311c3b15be71e732fd643e6bae23&xmlns=http://openrosa.org/formdesigner/44765BA7-04F7-425E-8F15-8976D3D6D5A9&startdate=2014-11-06&hq_filters=true&enddate=2015-05-18&filterSet=false

-Jared

··· On Sunday, May 17, 2015 at 3:58:35 AM UTC-4, Cory Zue wrote: > > Hey, > > The export tool does not currently support this, but there is an > (undocumented) API you can use to download multimedia zips of individual > form types. You can read about that on the prior thread here > https://groups.google.com/forum/#!searchin/commcare-users/multimedia$20android/commcare-users/FqicJN0vH78/WY1FDPIHCakJ > > Cory > > > > On Fri, May 15, 2015 at 9:34 PM, <jol...@nd.edu > wrote: > >> I'm using the commcare export tool to build a database of all my form >> submissions. One of my new forms has a signature capture field. Is there a >> way to use the export tool to retrieve the signature .jpg file? Or is there >> another API I can use? The only way I have found so far is to use the >> CommCare HQ site and download the multimedia for the form on the Data -> >> Export Forms page. Thanks. >> >> -- >> You received this message because you are subscribed to the Google Groups >> "commcare-users" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to commcare-user...@googlegroups.com . >> For more options, visit https://groups.google.com/d/optout. >> > >

Hey Jared,

I think we may need to update this view to support different methods of
authentication. We’ll make a patch and it should be released shortly.

Cory

··· On Mon, May 18, 2015 at 7:52 PM, wrote:

Hi Cory,

Thanks for your response. I am able to create a url that works when pasted
in the browser. However, when using curl or wget, all I am able to retrieve
is html of a page, rather than the jpeg files. I’ve been able to use curl
with the form API, so I’m not sure what I’m doing wrong. Any ideas?

curl -u -X GET
https://www.commcarehq.org/a/spatialrepellents/reports/form_data/download/media/?app_id=623d311c3b15be71e732fd643e6bae23&xmlns=http://openrosa.org/formdesigner/44765BA7-04F7-425E-8F15-8976D3D6D5A9&startdate=2014-11-06&hq_filters=true&enddate=2015-05-18&filterSet=false

-Jared

On Sunday, May 17, 2015 at 3:58:35 AM UTC-4, Cory Zue wrote:

Hey,

The export tool does not currently support this, but there is an
(undocumented) API you can use to download multimedia zips of individual
form types. You can read about that on the prior thread here
https://groups.google.com/forum/#!searchin/commcare-users/multimedia$20android/commcare-users/FqicJN0vH78/WY1FDPIHCakJ

Cory

On Fri, May 15, 2015 at 9:34 PM, jol...@nd.edu wrote:

I’m using the commcare export tool to build a database of all my form
submissions. One of my new forms has a signature capture field. Is there a
way to use the export tool to retrieve the signature .jpg file? Or is there
another API I can use? The only way I have found so far is to use the
CommCare HQ site and download the multimedia for the form on the Data ->
Export Forms page. Thanks.


You received this message because you are subscribed to the Google
Groups “commcare-users” group.
To unsubscribe from this group and stop receiving emails from it, send
an email to commcare-user...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


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