dhis2-devs team mailing list archive
-
dhis2-devs team
-
Mailing list archive
-
Message #30022
Re: Integrating a developed software in DHIS 2
Hi Developers,
I have read the documentation on http://www.dhis2.org/doc/snapshot/en/user/html/ch30.html so that I can solve my problem. However, I am trying to execute the following command in my PHP code but I do not get an output.
echo exec(`curl \"http://apps.dhis2.org/demo/api/dataValueSets?dataSet=pBOMPrpg1QX&period=201201&orgUnit=DiszpKrYNg8\" -H \"Accept:application/xml\" -u admin:district -v`);
Could someone tell me what am not doing write.
Many thanks in advance,
best regards,
John
On Tuesday, May 6, 2014 10:09 AM, Greg Rowles <greg.rowles@xxxxxxxxx> wrote:
Hi John (and Devs)
DHIS2 provides data in a variety of output formats that can easily be retrieved using custom-written code. The web API reads data directly from the database and outputs it as XML, CSV or other formats. You will need a 'crash-course' in DHIS2 - specifically the web-API functionality which you read more about here:
http://www.dhis2.org/doc/snapshot/en/user/html/ch30.html
Regards,
Greg
On Tue, May 6, 2014 at 2:27 AM, John Businge <johnxu21@xxxxxxxxx> wrote:
Dear Developers,
>
>
>We would like to be advised on how we can integrate a software we have developed into DHIS 2.
>
>
>The software we would like to integrate is developed with PHP and MySQL technologies. Currently we extract indicator data of interest from DHIS 2 and populating it in the designed database of the software. However, since data on indicators in DHIS 2 database are updated periodically, we would like to extract the data on the indicators of interest periodically as well (i.e., a month later or so when we sure that the data on indicators of interest in DHIS 2 have been updated). To this end, we would like to be advised on how this can achieved.
>
>
>Many thanks in advance,
>
>
>Best regards,
>
>
>John
>_______________________________________________
>Mailing list: https://launchpad.net/~dhis2-devs
>Post to : dhis2-devs@xxxxxxxxxxxxxxxxxxx
>Unsubscribe : https://launchpad.net/~dhis2-devs
>More help : https://help.launchpad.net/ListHelp
>
>
--
Health Information Systems Programme
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Mobile : 073 246 2992
Landline: 021 554 3130
Fax: 086 733 8432
Skype: gregory_rowles
References