No worries. Lars
On Thu, Jul 27, 2017 at 6:22 PM, Jesus Solano-Roman < asol...@broadinstitute.org> wrote: > Hi Lars. > > Thanks for the quick reply. This should fix it, my apologies for not > reading more carefully. > > > > *Antonio Solano-Roman* > > Data Visualization & User Experience Design > Sabeti Lab - Broad Institute > > On Jul 27 2017, at 12:19 pm, Lars Helge Øverland <l...@dhis2.org> wrote: > >> Hi Jesus, >> >> the API endpoint should work. There are a few parameters which are >> mandatory: >> >> https://play.dhis2.org/demo/api/26/analytics/events/ >> aggregate/eBAyeGv0exc.json?dimension=ou:ImspTQPwCqd& >> dimension=pe:LAST_4_QUARTERS&dimension=fWIAEtYVEGk& >> dimension=oZg33kd9taw&stage=Zj7UnCAulEk&displayProperty= >> SHORTNAME&outputType=EVENT&value=vV9UWAZohSf&aggregationType=AVERAGE >> <https://play.dhis2.org/demo/api/26/analytics/events/aggregate/eBAyeGv0exc.json?dimension=ou%3AImspTQPwCqd&%3Bdimension=pe%3ALAST_4_QUARTERS&%3Bdimension=fWIAEtYVEGk&%3Bdimension=oZg33kd9taw&%3Bstage=Zj7UnCAulEk&%3BdisplayProperty=SHORTNAME&%3BoutputType=EVENT&%3Bvalue=vV9UWAZohSf&%3BaggregationType=AVERAGE&recipient=lars%40dhis2.org> >> >> Have a look at the docs here: >> >> https://docs.dhis2.org/master/en/developer/html/webapi_ >> event_analytics.html >> <https://docs.dhis2.org/master/en/developer/html/webapi_event_analytics.html?recipient=lars%40dhis2.org> >> >> regards, >> >> Lars >> >> >> On Thu, Jul 27, 2017 at 6:07 PM, Jesus Solano-Roman < >> asol...@broadinstitute.org> wrote: >> >> Hello all. >> >> We've been trying to get the Event Analytics endpoint to work (e.g.:) >> >> *https://play.dhis2.org/dev/api/analytics/events >> <https://play.dhis2.org/dev/api/analytics/events?recipient=lars%40dhis2.org>* >> >> but we get a 404 error from the server. The same happens on our local >> installation of DHIS2. >> >> Is there a reason why this is happening? Must something setting be >> enabled or is this endpoint broken? >> >> Alternatively, we basically just want to get a list of the Data Elements >> used in a particular program (event). We think this endpoint will do that >> but if there's another endpoint we can use feel free to suggest. >> >> Otherwise our options are limited to looping and getting unique >> identifiers using the >> >> */api/events?program=[...]* >> >> endpoint. >> >> >> As always, thanks for your kind help. >> >> >> Antonio Solano. >> Broad Institute of MIT and Harvard. Boston, MA. USA >> >> _______________________________________________ >> Mailing list: https://launchpad.net/~dhis2-users >> <https://launchpad.net/~dhis2-users?recipient=lars%40dhis2.org> >> Post to : dhis2-users@lists.launchpad.net >> Unsubscribe : https://launchpad.net/~dhis2-users >> <https://launchpad.net/~dhis2-users?recipient=lars%40dhis2.org> >> More help : https://help.launchpad.net/ListHelp >> <https://help.launchpad.net/ListHelp?recipient=lars%40dhis2.org> >> >> >> >> >> -- >> Lars Helge Øverland >> Lead developer, DHIS 2 >> University of Oslo >> Skype: larshelgeoverland >> l...@dhis2.org >> http://www.dhis2.org <https://www.dhis2.org/?recipient=lars%40dhis2.org> >> >> -- Lars Helge Øverland Lead developer, DHIS 2 University of Oslo Skype: larshelgeoverland l...@dhis2.org http://www.dhis2.org <https://www.dhis2.org/>
_______________________________________________ Mailing list: https://launchpad.net/~dhis2-users Post to : dhis2-users@lists.launchpad.net Unsubscribe : https://launchpad.net/~dhis2-users More help : https://help.launchpad.net/ListHelp