← Back to team overview

dhis2-users team mailing list archive

Re: Event analytics endpoint broken

 

No worries.

Lars

On Thu, Jul 27, 2017 at 6:22 PM, Jesus Solano-Roman <
asolano@xxxxxxxxxxxxxxxxxx> 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 <lars@xxxxxxxxx> 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&amp%3Bdimension=pe%3ALAST_4_QUARTERS&amp%3Bdimension=fWIAEtYVEGk&amp%3Bdimension=oZg33kd9taw&amp%3Bstage=Zj7UnCAulEk&amp%3BdisplayProperty=SHORTNAME&amp%3BoutputType=EVENT&amp%3Bvalue=vV9UWAZohSf&amp%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 <
>> asolano@xxxxxxxxxxxxxxxxxx> 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@xxxxxxxxxxxxxxxxxxx
>> 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
>> lars@xxxxxxxxx
>> http://www.dhis2.org <https://www.dhis2.org/?recipient=lars%40dhis2.org>
>>
>>


-- 
Lars Helge Øverland
Lead developer, DHIS 2
University of Oslo
Skype: larshelgeoverland
lars@xxxxxxxxx
http://www.dhis2.org <https://www.dhis2.org/>

References