If you want to use DataValueSet, you should use that endpoint: https://play.dhis2.org/demo/api/dataValueSets.csv?dataSet=pBOMPrpg1QX&orgUnit=DiszpKrYNg8&period=201602
On Fri, Jan 6, 2017 at 11:50 AM, Knut Staring <[email protected]> wrote: > Hi Ime, > > This seems to work fine: > https://play.dhis2.org/demo/api/analytics.csv?dimension= > dx:fbfJHSPpUQD&dimension=pe:2016&dimension=ou:O6uvpzGd5pu;lc3eMKXaEfw > > Knut > > On Fri, Jan 6, 2017 at 7:11 AM, Ime Asangansi <[email protected]> > wrote: > >> Good day friends, >> >> I'm a web-api newbie here, in need a kind and quick clarification >> concerning response formats. >> >> I'm trying to programmatically retrieve some data using CSV >> >> Am I right to assume this? >> for any data I can get in JSON format through >> api/analytics/dataValueSet.json?dimension=... >> I can get the equivalent through api/analytics/dataValueSet.csv >> ?dimension=... >> >> I'm trying to switch our programmatic access to analytics to CSV, and >> want to know if this is the expected result as the manual says in >> https://ci.dhis2.org/docs/2.23/en/developer/html/ch01s32.html >> >> But I tried it and I get a returned "status Code: 404 Not Found" for >> CSV, and JSONP >> whereas when I switch json to xml, it just works... Like >> api/analytics/dataValueSet.xml?dimension=... >> >> Or does this have to do with some configuration or the nature of the data? >> >> Thanks so much, in anticipation. >> >> Ime >> Abuja >> >> -- >> [image: photo] >> >> <http://twitter.com/imeasangansi> >> <http://ng.linkedin.com/company/ehealth4everyone> >> <http://twitter.com/ehealth4every1> >> Ime Asangansi MD, PhD (Informatics) >> Chief Excellence Officer, ehealth4everyone >> Abuja, Nigeria >> >> +2348180790150 >> [email protected] >> Skype: asangansiime <#m_6862927987993447394_m_-2331909708527845880_> >> www.ehealth4everyone.com >> <https://twitter.com/ehealth4every1> >> <https://ng.linkedin.com/in/asangansi> >> >> _______________________________________________ >> Mailing list: https://launchpad.net/~dhis2-devs >> Post to : [email protected] >> Unsubscribe : https://launchpad.net/~dhis2-devs >> More help : https://help.launchpad.net/ListHelp >> >> > > > -- > Knut Staring > Dept. of Informatics, University of Oslo > Norway: +4791880522 <+47%20918%2080%20522> > Skype: knutstar > http://dhis2.org > -- Knut Staring Dept. of Informatics, University of Oslo Norway: +4791880522 Skype: knutstar http://dhis2.org
_______________________________________________ Mailing list: https://launchpad.net/~dhis2-devs Post to : [email protected] Unsubscribe : https://launchpad.net/~dhis2-devs More help : https://help.launchpad.net/ListHelp

