Web API Module

Hello dear developers,

I am trying to develop an Android mobile client for our DHIS2, I wanted to know if DHIS2 offers a web service to find connected users to the system. if so what is URL.

Also whether DHIS2 to other web services which are not directly visible by clicking on “Help >> Web API”. What are their URLs?

My android mobile client uses the web services like Rest / Json

image

image

···


Riddy NDOMA
Software Developer
Skype: riddyndoma, G+: riddyndoma, FB: riddy ndoma

Twitter: riddyndoma, LinkedIn: riddy ndoma
Blog: http://riddyndoma.blogspot.com/

Vous servir est mon désire (Serving you is my desire)

Have you had a look at the existing Android client available in the Play Store? It is using the Web API which as detailed in the documentation.

Regards,

Jason

–Sent from my mobile

···

On Nov 30, 2013 12:05 PM, “riddy ndoma” riddyndoma@gmail.com wrote:

Hello dear developers,

I am trying to develop an Android mobile client for our DHIS2, I wanted to know if DHIS2 offers a web service to find connected users to the system. if so what is URL.

Also whether DHIS2 to other web services which are not directly visible by clicking on “Help >> Web API”. What are their URLs?

My android mobile client uses the web services like Rest / Json


Riddy NDOMA
Software Developer
Skype: riddyndoma, G+: riddyndoma, FB: riddy ndoma

Twitter: riddyndoma, LinkedIn: riddy ndoma
Blog: http://riddyndoma.blogspot.com/

Vous servir est mon désire (Serving you is my desire)


Mailing list: https://launchpad.net/~dhis2-devs

Post to : dhis2-devs@lists.launchpad.net

Unsubscribe : https://launchpad.net/~dhis2-devs

More help : https://help.launchpad.net/ListHelp

Hi Riddy,

could you elaborate on what you mean with “connected users”, ie. is it users currently logged in or user accounts registered?

JSON is typically the preferred representation format for Android development. You can get all user accounts from the Web API in json like this:

http://apps.dhis2.org/demo/api/users.json?paging=false

Lars

···

On Sat, Nov 30, 2013 at 1:51 PM, Jason Pickering jason.p.pickering@gmail.com wrote:

Have you had a look at the existing Android client available in the Play Store? It is using the Web API which as detailed in the documentation.

Regards,

Jason

–Sent from my mobile

On Nov 30, 2013 12:05 PM, “riddy ndoma” riddyndoma@gmail.com wrote:

Hello dear developers,

I am trying to develop an Android mobile client for our DHIS2, I wanted to know if DHIS2 offers a web service to find connected users to the system. if so what is URL.

Also whether DHIS2 to other web services which are not directly visible by clicking on “Help >> Web API”. What are their URLs?

My android mobile client uses the web services like Rest / Json


Riddy NDOMA
Software Developer
Skype: riddyndoma, G+: riddyndoma, FB: riddy ndoma

Twitter: riddyndoma, LinkedIn: riddy ndoma
Blog: http://riddyndoma.blogspot.com/

Vous servir est mon désire (Serving you is my desire)


Mailing list: https://launchpad.net/~dhis2-devs

Post to : dhis2-devs@lists.launchpad.net

Unsubscribe : https://launchpad.net/~dhis2-devs

More help : https://help.launchpad.net/ListHelp


Mailing list: https://launchpad.net/~dhis2-devs

Post to : dhis2-devs@lists.launchpad.net

Unsubscribe : https://launchpad.net/~dhis2-devs

More help : https://help.launchpad.net/ListHelp

Hi @Lars,
I have already an interface that displays a list of users now I’ll make an interface that display users Currently logged, but I do not see in the API Web module, the url that exposes this service.

···

2013/12/2 Lars Helge Øverland larshelge@gmail.com

Hi Riddy,

could you elaborate on what you mean with “connected users”, ie. is it users currently logged in or user accounts registered?

JSON is typically the preferred representation format for Android development. You can get all user accounts from the Web API in json like this:

http://apps.dhis2.org/demo/api/users.json?paging=false

Lars


Riddy NDOMA
Software Developer
Skype: riddyndoma, G+: riddyndoma, FB: riddy ndoma

Twitter: riddyndoma, LinkedIn: riddy ndoma
Blog: http://riddyndoma.blogspot.com/

Vous servir est mon désire (Serving you is my desire)

On Sat, Nov 30, 2013 at 1:51 PM, Jason Pickering jason.p.pickering@gmail.com wrote:

Have you had a look at the existing Android client available in the Play Store? It is using the Web API which as detailed in the documentation.

Regards,

Jason

–Sent from my mobile

On Nov 30, 2013 12:05 PM, “riddy ndoma” riddyndoma@gmail.com wrote:

Hello dear developers,

I am trying to develop an Android mobile client for our DHIS2, I wanted to know if DHIS2 offers a web service to find connected users to the system. if so what is URL.

Also whether DHIS2 to other web services which are not directly visible by clicking on “Help >> Web API”. What are their URLs?

My android mobile client uses the web services like Rest / Json


Riddy NDOMA
Software Developer
Skype: riddyndoma, G+: riddyndoma, FB: riddy ndoma

Twitter: riddyndoma, LinkedIn: riddy ndoma
Blog: http://riddyndoma.blogspot.com/

Vous servir est mon désire (Serving you is my desire)


Mailing list: https://launchpad.net/~dhis2-devs

Post to : dhis2-devs@lists.launchpad.net

Unsubscribe : https://launchpad.net/~dhis2-devs

More help : https://help.launchpad.net/ListHelp


Mailing list: https://launchpad.net/~dhis2-devs

Post to : dhis2-devs@lists.launchpad.net

Unsubscribe : https://launchpad.net/~dhis2-devs

More help : https://help.launchpad.net/ListHelp

Okay - at the moment we do not have a service for that, sorry.

Lars

···

On Mon, Dec 2, 2013 at 1:31 PM, riddy ndoma riddyndoma@gmail.com wrote:

Hi @Lars,
I have already an interface that displays a list of users now I’ll make an interface that display users Currently logged, but I do not see in the API Web module, the url that exposes this service.

2013/12/2 Lars Helge Øverland larshelge@gmail.com

Hi Riddy,

could you elaborate on what you mean with “connected users”, ie. is it users currently logged in or user accounts registered?

JSON is typically the preferred representation format for Android development. You can get all user accounts from the Web API in json like this:

http://apps.dhis2.org/demo/api/users.json?paging=false

Lars


Riddy NDOMA
Software Developer
Skype: riddyndoma, G+: riddyndoma, FB: riddy ndoma

Twitter: riddyndoma, LinkedIn: riddy ndoma
Blog: http://riddyndoma.blogspot.com/

Vous servir est mon désire (Serving you is my desire)

On Sat, Nov 30, 2013 at 1:51 PM, Jason Pickering jason.p.pickering@gmail.com wrote:

Have you had a look at the existing Android client available in the Play Store? It is using the Web API which as detailed in the documentation.

Regards,

Jason

–Sent from my mobile

On Nov 30, 2013 12:05 PM, “riddy ndoma” riddyndoma@gmail.com wrote:

Hello dear developers,

I am trying to develop an Android mobile client for our DHIS2, I wanted to know if DHIS2 offers a web service to find connected users to the system. if so what is URL.

Also whether DHIS2 to other web services which are not directly visible by clicking on “Help >> Web API”. What are their URLs?

My android mobile client uses the web services like Rest / Json


Riddy NDOMA
Software Developer
Skype: riddyndoma, G+: riddyndoma, FB: riddy ndoma

Twitter: riddyndoma, LinkedIn: riddy ndoma
Blog: http://riddyndoma.blogspot.com/

Vous servir est mon désire (Serving you is my desire)


Mailing list: https://launchpad.net/~dhis2-devs

Post to : dhis2-devs@lists.launchpad.net

Unsubscribe : https://launchpad.net/~dhis2-devs

More help : https://help.launchpad.net/ListHelp


Mailing list: https://launchpad.net/~dhis2-devs

Post to : dhis2-devs@lists.launchpad.net

Unsubscribe : https://launchpad.net/~dhis2-devs

More help : https://help.launchpad.net/ListHelp

Lars thank you for your involvement. I wanted to know if there are other web services but which are not directly visible in the Web module API (Help Menu> Web API). if so what are the urls?

···

2013/12/2 Lars Helge Øverland larshelge@gmail.com

Lars

Okay - at the moment we do not have a service for that, sorry.


Riddy NDOMA
Software Developer
Skype: riddyndoma, G+: riddyndoma, FB: riddy ndoma

Twitter: riddyndoma, LinkedIn: riddy ndoma
Blog: http://riddyndoma.blogspot.com/

Vous servir est mon désire (Serving you is my desire)

On Mon, Dec 2, 2013 at 1:31 PM, riddy ndoma riddyndoma@gmail.com wrote:

Hi @Lars,
I have already an interface that displays a list of users now I’ll make an interface that display users Currently logged, but I do not see in the API Web module, the url that exposes this service.

2013/12/2 Lars Helge Øverland larshelge@gmail.com

Hi Riddy,

could you elaborate on what you mean with “connected users”, ie. is it users currently logged in or user accounts registered?

JSON is typically the preferred representation format for Android development. You can get all user accounts from the Web API in json like this:

http://apps.dhis2.org/demo/api/users.json?paging=false

Lars


Riddy NDOMA
Software Developer
Skype: riddyndoma, G+: riddyndoma, FB: riddy ndoma

Twitter: riddyndoma, LinkedIn: riddy ndoma
Blog: http://riddyndoma.blogspot.com/

Vous servir est mon désire (Serving you is my desire)

On Sat, Nov 30, 2013 at 1:51 PM, Jason Pickering jason.p.pickering@gmail.com wrote:

Have you had a look at the existing Android client available in the Play Store? It is using the Web API which as detailed in the documentation.

Regards,

Jason

–Sent from my mobile

On Nov 30, 2013 12:05 PM, “riddy ndoma” riddyndoma@gmail.com wrote:

Hello dear developers,

I am trying to develop an Android mobile client for our DHIS2, I wanted to know if DHIS2 offers a web service to find connected users to the system. if so what is URL.

Also whether DHIS2 to other web services which are not directly visible by clicking on “Help >> Web API”. What are their URLs?

My android mobile client uses the web services like Rest / Json


Riddy NDOMA
Software Developer
Skype: riddyndoma, G+: riddyndoma, FB: riddy ndoma

Twitter: riddyndoma, LinkedIn: riddy ndoma
Blog: http://riddyndoma.blogspot.com/

Vous servir est mon désire (Serving you is my desire)


Mailing list: https://launchpad.net/~dhis2-devs

Post to : dhis2-devs@lists.launchpad.net

Unsubscribe : https://launchpad.net/~dhis2-devs

More help : https://help.launchpad.net/ListHelp


Mailing list: https://launchpad.net/~dhis2-devs

Post to : dhis2-devs@lists.launchpad.net

Unsubscribe : https://launchpad.net/~dhis2-devs

More help : https://help.launchpad.net/ListHelp

Hi Riddy,

For creating an android client, I would look at the information here [1].

[1] http://www.dhis2.org/doc/snapshot/en/user/html/ch25s24.html

···


Morten

On Mon, Dec 2, 2013 at 2:28 PM, riddy ndoma riddyndoma@gmail.com wrote:

Lars thank you for your involvement. I wanted to know if there are other web services but which are not directly visible in the Web module API (Help Menu> Web API). if so what are the urls?


Mailing list: https://launchpad.net/~dhis2-devs

Post to : dhis2-devs@lists.launchpad.net

Unsubscribe : https://launchpad.net/~dhis2-devs

More help : https://help.launchpad.net/ListHelp

2013/12/2 Lars Helge Øverland larshelge@gmail.com

Lars

Okay - at the moment we do not have a service for that, sorry.


Riddy NDOMA
Software Developer
Skype: riddyndoma, G+: riddyndoma, FB: riddy ndoma

Twitter: riddyndoma, LinkedIn: riddy ndoma
Blog: http://riddyndoma.blogspot.com/

Vous servir est mon désire (Serving you is my desire)

On Mon, Dec 2, 2013 at 1:31 PM, riddy ndoma riddyndoma@gmail.com wrote:

Hi @Lars,
I have already an interface that displays a list of users now I’ll make an interface that display users Currently logged, but I do not see in the API Web module, the url that exposes this service.

2013/12/2 Lars Helge Øverland larshelge@gmail.com

Hi Riddy,

could you elaborate on what you mean with “connected users”, ie. is it users currently logged in or user accounts registered?

JSON is typically the preferred representation format for Android development. You can get all user accounts from the Web API in json like this:

http://apps.dhis2.org/demo/api/users.json?paging=false

Lars


Riddy NDOMA
Software Developer
Skype: riddyndoma, G+: riddyndoma, FB: riddy ndoma

Twitter: riddyndoma, LinkedIn: riddy ndoma
Blog: http://riddyndoma.blogspot.com/

Vous servir est mon désire (Serving you is my desire)

On Sat, Nov 30, 2013 at 1:51 PM, Jason Pickering jason.p.pickering@gmail.com wrote:

Have you had a look at the existing Android client available in the Play Store? It is using the Web API which as detailed in the documentation.

Regards,

Jason

–Sent from my mobile

On Nov 30, 2013 12:05 PM, “riddy ndoma” riddyndoma@gmail.com wrote:

Hello dear developers,

I am trying to develop an Android mobile client for our DHIS2, I wanted to know if DHIS2 offers a web service to find connected users to the system. if so what is URL.

Also whether DHIS2 to other web services which are not directly visible by clicking on “Help >> Web API”. What are their URLs?

My android mobile client uses the web services like Rest / Json


Riddy NDOMA
Software Developer
Skype: riddyndoma, G+: riddyndoma, FB: riddy ndoma

Twitter: riddyndoma, LinkedIn: riddy ndoma
Blog: http://riddyndoma.blogspot.com/

Vous servir est mon désire (Serving you is my desire)


Mailing list: https://launchpad.net/~dhis2-devs

Post to : dhis2-devs@lists.launchpad.net

Unsubscribe : https://launchpad.net/~dhis2-devs

More help : https://help.launchpad.net/ListHelp


Mailing list: https://launchpad.net/~dhis2-devs

Post to : dhis2-devs@lists.launchpad.net

Unsubscribe : https://launchpad.net/~dhis2-devs

More help : https://help.launchpad.net/ListHelp

All web api docs here:

http://www.dhis2.org/doc/snapshot/en/user/html/ch25.html

···

On Mon, Dec 2, 2013 at 2:35 PM, Morten Olav Hansen mortenoh@gmail.com wrote:

Hi Riddy,

For creating an android client, I would look at the information here [1].

[1] http://www.dhis2.org/doc/snapshot/en/user/html/ch25s24.html


Morten

On Mon, Dec 2, 2013 at 2:28 PM, riddy ndoma riddyndoma@gmail.com wrote:

Lars thank you for your involvement. I wanted to know if there are other web services but which are not directly visible in the Web module API (Help Menu> Web API). if so what are the urls?


Mailing list: https://launchpad.net/~dhis2-devs

Post to : dhis2-devs@lists.launchpad.net

Unsubscribe : https://launchpad.net/~dhis2-devs

More help : https://help.launchpad.net/ListHelp

2013/12/2 Lars Helge Øverland larshelge@gmail.com

Lars

Okay - at the moment we do not have a service for that, sorry.


Riddy NDOMA
Software Developer
Skype: riddyndoma, G+: riddyndoma, FB: riddy ndoma

Twitter: riddyndoma, LinkedIn: riddy ndoma
Blog: http://riddyndoma.blogspot.com/

Vous servir est mon désire (Serving you is my desire)

On Mon, Dec 2, 2013 at 1:31 PM, riddy ndoma riddyndoma@gmail.com wrote:

Hi @Lars,
I have already an interface that displays a list of users now I’ll make an interface that display users Currently logged, but I do not see in the API Web module, the url that exposes this service.

2013/12/2 Lars Helge Øverland larshelge@gmail.com

Hi Riddy,

could you elaborate on what you mean with “connected users”, ie. is it users currently logged in or user accounts registered?

JSON is typically the preferred representation format for Android development. You can get all user accounts from the Web API in json like this:

http://apps.dhis2.org/demo/api/users.json?paging=false

Lars


Riddy NDOMA
Software Developer
Skype: riddyndoma, G+: riddyndoma, FB: riddy ndoma

Twitter: riddyndoma, LinkedIn: riddy ndoma
Blog: http://riddyndoma.blogspot.com/

Vous servir est mon désire (Serving you is my desire)

On Sat, Nov 30, 2013 at 1:51 PM, Jason Pickering jason.p.pickering@gmail.com wrote:

Have you had a look at the existing Android client available in the Play Store? It is using the Web API which as detailed in the documentation.

Regards,

Jason

–Sent from my mobile

On Nov 30, 2013 12:05 PM, “riddy ndoma” riddyndoma@gmail.com wrote:

Hello dear developers,

I am trying to develop an Android mobile client for our DHIS2, I wanted to know if DHIS2 offers a web service to find connected users to the system. if so what is URL.

Also whether DHIS2 to other web services which are not directly visible by clicking on “Help >> Web API”. What are their URLs?

My android mobile client uses the web services like Rest / Json


Riddy NDOMA
Software Developer
Skype: riddyndoma, G+: riddyndoma, FB: riddy ndoma

Twitter: riddyndoma, LinkedIn: riddy ndoma
Blog: http://riddyndoma.blogspot.com/

Vous servir est mon désire (Serving you is my desire)


Mailing list: https://launchpad.net/~dhis2-devs

Post to : dhis2-devs@lists.launchpad.net

Unsubscribe : https://launchpad.net/~dhis2-devs

More help : https://help.launchpad.net/ListHelp


Mailing list: https://launchpad.net/~dhis2-devs

Post to : dhis2-devs@lists.launchpad.net

Unsubscribe : https://launchpad.net/~dhis2-devs

More help : https://help.launchpad.net/ListHelp

Thank you very much, but a small problem. DHIS2 only offers web services for reading and not writing.

···

2013/12/2 Lars Helge Øverland larshelge@gmail.com

All web api docs here:

http://www.dhis2.org/doc/snapshot/en/user/html/ch25.html


Riddy NDOMA
Software Developer
Skype: riddyndoma, G+: riddyndoma, FB: riddy ndoma

Twitter: riddyndoma, LinkedIn: riddy ndoma
Blog: http://riddyndoma.blogspot.com/

Vous servir est mon désire (Serving you is my desire)

On Mon, Dec 2, 2013 at 2:35 PM, Morten Olav Hansen mortenoh@gmail.com wrote:

Hi Riddy,

For creating an android client, I would look at the information here [1].

[1] http://www.dhis2.org/doc/snapshot/en/user/html/ch25s24.html


Morten

On Mon, Dec 2, 2013 at 2:28 PM, riddy ndoma riddyndoma@gmail.com wrote:

Lars thank you for your involvement. I wanted to know if there are other web services but which are not directly visible in the Web module API (Help Menu> Web API). if so what are the urls?


Mailing list: https://launchpad.net/~dhis2-devs

Post to : dhis2-devs@lists.launchpad.net

Unsubscribe : https://launchpad.net/~dhis2-devs

More help : https://help.launchpad.net/ListHelp

2013/12/2 Lars Helge Øverland larshelge@gmail.com

Lars

Okay - at the moment we do not have a service for that, sorry.


Riddy NDOMA
Software Developer
Skype: riddyndoma, G+: riddyndoma, FB: riddy ndoma

Twitter: riddyndoma, LinkedIn: riddy ndoma
Blog: http://riddyndoma.blogspot.com/

Vous servir est mon désire (Serving you is my desire)

On Mon, Dec 2, 2013 at 1:31 PM, riddy ndoma riddyndoma@gmail.com wrote:

Hi @Lars,
I have already an interface that displays a list of users now I’ll make an interface that display users Currently logged, but I do not see in the API Web module, the url that exposes this service.

2013/12/2 Lars Helge Øverland larshelge@gmail.com

Hi Riddy,

could you elaborate on what you mean with “connected users”, ie. is it users currently logged in or user accounts registered?

JSON is typically the preferred representation format for Android development. You can get all user accounts from the Web API in json like this:

http://apps.dhis2.org/demo/api/users.json?paging=false

Lars


Riddy NDOMA
Software Developer
Skype: riddyndoma, G+: riddyndoma, FB: riddy ndoma

Twitter: riddyndoma, LinkedIn: riddy ndoma
Blog: http://riddyndoma.blogspot.com/

Vous servir est mon désire (Serving you is my desire)

On Sat, Nov 30, 2013 at 1:51 PM, Jason Pickering jason.p.pickering@gmail.com wrote:

Have you had a look at the existing Android client available in the Play Store? It is using the Web API which as detailed in the documentation.

Regards,

Jason

–Sent from my mobile

On Nov 30, 2013 12:05 PM, “riddy ndoma” riddyndoma@gmail.com wrote:

Hello dear developers,

I am trying to develop an Android mobile client for our DHIS2, I wanted to know if DHIS2 offers a web service to find connected users to the system. if so what is URL.

Also whether DHIS2 to other web services which are not directly visible by clicking on “Help >> Web API”. What are their URLs?

My android mobile client uses the web services like Rest / Json


Riddy NDOMA
Software Developer
Skype: riddyndoma, G+: riddyndoma, FB: riddy ndoma

Twitter: riddyndoma, LinkedIn: riddy ndoma
Blog: http://riddyndoma.blogspot.com/

Vous servir est mon désire (Serving you is my desire)


Mailing list: https://launchpad.net/~dhis2-devs

Post to : dhis2-devs@lists.launchpad.net

Unsubscribe : https://launchpad.net/~dhis2-devs

More help : https://help.launchpad.net/ListHelp


Mailing list: https://launchpad.net/~dhis2-devs

Post to : dhis2-devs@lists.launchpad.net

Unsubscribe : https://launchpad.net/~dhis2-devs

More help : https://help.launchpad.net/ListHelp

What exactly are you trying to do Riddy? Its true that we don’t support writing for all our endpoints, not yet at least. We do support writes for dataValues etc, so that creating a data entry client for Android should be very doable (and it has been done for event based data already).

If you are trying to creating a client for all of dhis2 functionality, that is not currently supported

···


Morten

On Mon, Dec 2, 2013 at 2:56 PM, riddy ndoma riddyndoma@gmail.com wrote:

Thank you very much, but a small problem. DHIS2 only offers web services for reading and not writing.

2013/12/2 Lars Helge Øverland larshelge@gmail.com

All web api docs here:

http://www.dhis2.org/doc/snapshot/en/user/html/ch25.html


Riddy NDOMA
Software Developer
Skype: riddyndoma, G+: riddyndoma, FB: riddy ndoma

Twitter: riddyndoma, LinkedIn: riddy ndoma
Blog: http://riddyndoma.blogspot.com/

Vous servir est mon désire (Serving you is my desire)

On Mon, Dec 2, 2013 at 2:35 PM, Morten Olav Hansen mortenoh@gmail.com wrote:

Hi Riddy,

For creating an android client, I would look at the information here [1].

[1] http://www.dhis2.org/doc/snapshot/en/user/html/ch25s24.html


Morten

On Mon, Dec 2, 2013 at 2:28 PM, riddy ndoma riddyndoma@gmail.com wrote:

Lars thank you for your involvement. I wanted to know if there are other web services but which are not directly visible in the Web module API (Help Menu> Web API). if so what are the urls?


Mailing list: https://launchpad.net/~dhis2-devs

Post to : dhis2-devs@lists.launchpad.net

Unsubscribe : https://launchpad.net/~dhis2-devs

More help : https://help.launchpad.net/ListHelp

2013/12/2 Lars Helge Øverland larshelge@gmail.com

Lars

Okay - at the moment we do not have a service for that, sorry.


Riddy NDOMA
Software Developer
Skype: riddyndoma, G+: riddyndoma, FB: riddy ndoma

Twitter: riddyndoma, LinkedIn: riddy ndoma
Blog: http://riddyndoma.blogspot.com/

Vous servir est mon désire (Serving you is my desire)

On Mon, Dec 2, 2013 at 1:31 PM, riddy ndoma riddyndoma@gmail.com wrote:

Hi @Lars,
I have already an interface that displays a list of users now I’ll make an interface that display users Currently logged, but I do not see in the API Web module, the url that exposes this service.

2013/12/2 Lars Helge Øverland larshelge@gmail.com

Hi Riddy,

could you elaborate on what you mean with “connected users”, ie. is it users currently logged in or user accounts registered?

JSON is typically the preferred representation format for Android development. You can get all user accounts from the Web API in json like this:

http://apps.dhis2.org/demo/api/users.json?paging=false

Lars


Riddy NDOMA
Software Developer
Skype: riddyndoma, G+: riddyndoma, FB: riddy ndoma

Twitter: riddyndoma, LinkedIn: riddy ndoma
Blog: http://riddyndoma.blogspot.com/

Vous servir est mon désire (Serving you is my desire)

On Sat, Nov 30, 2013 at 1:51 PM, Jason Pickering jason.p.pickering@gmail.com wrote:

Have you had a look at the existing Android client available in the Play Store? It is using the Web API which as detailed in the documentation.

Regards,

Jason

–Sent from my mobile

On Nov 30, 2013 12:05 PM, “riddy ndoma” riddyndoma@gmail.com wrote:

Hello dear developers,

I am trying to develop an Android mobile client for our DHIS2, I wanted to know if DHIS2 offers a web service to find connected users to the system. if so what is URL.

Also whether DHIS2 to other web services which are not directly visible by clicking on “Help >> Web API”. What are their URLs?

My android mobile client uses the web services like Rest / Json


Riddy NDOMA
Software Developer
Skype: riddyndoma, G+: riddyndoma, FB: riddy ndoma

Twitter: riddyndoma, LinkedIn: riddy ndoma
Blog: http://riddyndoma.blogspot.com/

Vous servir est mon désire (Serving you is my desire)


Mailing list: https://launchpad.net/~dhis2-devs

Post to : dhis2-devs@lists.launchpad.net

Unsubscribe : https://launchpad.net/~dhis2-devs

More help : https://help.launchpad.net/ListHelp


Mailing list: https://launchpad.net/~dhis2-devs

Post to : dhis2-devs@lists.launchpad.net

Unsubscribe : https://launchpad.net/~dhis2-devs

More help : https://help.launchpad.net/ListHelp

Thank you @Morten. I now fully understand the spirit of the Web module API. But I suggest that if possible to integrate to superior versions the web service that lists the users logged into the system. this is very good for the administrator does not need to go on the computer to know the people who use the system.
Regards,

···

2013/12/2 Morten Olav Hansen mortenoh@gmail.com

What exactly are you trying to do Riddy? Its true that we don’t support writing for all our endpoints, not yet at least. We do support writes for dataValues etc, so that creating a data entry client for Android should be very doable (and it has been done for event based data already).

If you are trying to creating a client for all of dhis2 functionality, that is not currently supported


Riddy NDOMA
Software Developer
Skype: riddyndoma, G+: riddyndoma, FB: riddy ndoma

Twitter: riddyndoma, LinkedIn: riddy ndoma
Blog: http://riddyndoma.blogspot.com/

Vous servir est mon désire (Serving you is my desire)


Morten

On Mon, Dec 2, 2013 at 2:56 PM, riddy ndoma riddyndoma@gmail.com wrote:

Thank you very much, but a small problem. DHIS2 only offers web services for reading and not writing.

2013/12/2 Lars Helge Øverland larshelge@gmail.com

All web api docs here:

http://www.dhis2.org/doc/snapshot/en/user/html/ch25.html


Riddy NDOMA
Software Developer
Skype: riddyndoma, G+: riddyndoma, FB: riddy ndoma

Twitter: riddyndoma, LinkedIn: riddy ndoma
Blog: http://riddyndoma.blogspot.com/

Vous servir est mon désire (Serving you is my desire)

On Mon, Dec 2, 2013 at 2:35 PM, Morten Olav Hansen mortenoh@gmail.com wrote:

Hi Riddy,

For creating an android client, I would look at the information here [1].

[1] http://www.dhis2.org/doc/snapshot/en/user/html/ch25s24.html


Morten

On Mon, Dec 2, 2013 at 2:28 PM, riddy ndoma riddyndoma@gmail.com wrote:

Lars thank you for your involvement. I wanted to know if there are other web services but which are not directly visible in the Web module API (Help Menu> Web API). if so what are the urls?


Mailing list: https://launchpad.net/~dhis2-devs

Post to : dhis2-devs@lists.launchpad.net

Unsubscribe : https://launchpad.net/~dhis2-devs

More help : https://help.launchpad.net/ListHelp

2013/12/2 Lars Helge Øverland larshelge@gmail.com

Lars

Okay - at the moment we do not have a service for that, sorry.


Riddy NDOMA
Software Developer
Skype: riddyndoma, G+: riddyndoma, FB: riddy ndoma

Twitter: riddyndoma, LinkedIn: riddy ndoma
Blog: http://riddyndoma.blogspot.com/

Vous servir est mon désire (Serving you is my desire)

On Mon, Dec 2, 2013 at 1:31 PM, riddy ndoma riddyndoma@gmail.com wrote:

Hi @Lars,
I have already an interface that displays a list of users now I’ll make an interface that display users Currently logged, but I do not see in the API Web module, the url that exposes this service.

2013/12/2 Lars Helge Øverland larshelge@gmail.com

Hi Riddy,

could you elaborate on what you mean with “connected users”, ie. is it users currently logged in or user accounts registered?

JSON is typically the preferred representation format for Android development. You can get all user accounts from the Web API in json like this:

http://apps.dhis2.org/demo/api/users.json?paging=false

Lars


Riddy NDOMA
Software Developer
Skype: riddyndoma, G+: riddyndoma, FB: riddy ndoma

Twitter: riddyndoma, LinkedIn: riddy ndoma
Blog: http://riddyndoma.blogspot.com/

Vous servir est mon désire (Serving you is my desire)

On Sat, Nov 30, 2013 at 1:51 PM, Jason Pickering jason.p.pickering@gmail.com wrote:

Have you had a look at the existing Android client available in the Play Store? It is using the Web API which as detailed in the documentation.

Regards,

Jason

–Sent from my mobile

On Nov 30, 2013 12:05 PM, “riddy ndoma” riddyndoma@gmail.com wrote:

Hello dear developers,

I am trying to develop an Android mobile client for our DHIS2, I wanted to know if DHIS2 offers a web service to find connected users to the system. if so what is URL.

Also whether DHIS2 to other web services which are not directly visible by clicking on “Help >> Web API”. What are their URLs?

My android mobile client uses the web services like Rest / Json


Riddy NDOMA
Software Developer
Skype: riddyndoma, G+: riddyndoma, FB: riddy ndoma

Twitter: riddyndoma, LinkedIn: riddy ndoma
Blog: http://riddyndoma.blogspot.com/

Vous servir est mon désire (Serving you is my desire)


Mailing list: https://launchpad.net/~dhis2-devs

Post to : dhis2-devs@lists.launchpad.net

Unsubscribe : https://launchpad.net/~dhis2-devs

More help : https://help.launchpad.net/ListHelp


Mailing list: https://launchpad.net/~dhis2-devs

Post to : dhis2-devs@lists.launchpad.net

Unsubscribe : https://launchpad.net/~dhis2-devs

More help : https://help.launchpad.net/ListHelp

Hi Riddy,¨

Maybe you can consider filing a blueprint?

Determining when a user logged in last is available here http://apps.dhis2.org/demo/api/users/N3PZBUlN8vq.json for instance. lastLogin":"2012-11-13T14:42:41.239+0000

But is sounds like what you want is for all users? Maybe you could use the Tomcat Manager for this, but it raises some potentially thorny security issues.

As for writing to the web-services, as Morten points out, this can be done with data values with either CSV or XML. For metadata, you can also import metadata sent from the client, which basically accomplishes a “write” endpoint for all of the endpoints in the API.

Regards, Jason

···

On Mon, Dec 2, 2013 at 4:14 PM, riddy ndoma riddyndoma@gmail.com wrote:

Thank you @Morten. I now fully understand the spirit of the Web module API. But I suggest that if possible to integrate to superior versions the web service that lists the users logged into the system. this is very good for the administrator does not need to go on the computer to know the people who use the system.
Regards,


Mailing list: https://launchpad.net/~dhis2-devs

Post to : dhis2-devs@lists.launchpad.net

Unsubscribe : https://launchpad.net/~dhis2-devs

More help : https://help.launchpad.net/ListHelp

2013/12/2 Morten Olav Hansen mortenoh@gmail.com

What exactly are you trying to do Riddy? Its true that we don’t support writing for all our endpoints, not yet at least. We do support writes for dataValues etc, so that creating a data entry client for Android should be very doable (and it has been done for event based data already).

If you are trying to creating a client for all of dhis2 functionality, that is not currently supported


Riddy NDOMA
Software Developer
Skype: riddyndoma, G+: riddyndoma, FB: riddy ndoma

Twitter: riddyndoma, LinkedIn: riddy ndoma
Blog: http://riddyndoma.blogspot.com/

Vous servir est mon désire (Serving you is my desire)


Morten

On Mon, Dec 2, 2013 at 2:56 PM, riddy ndoma riddyndoma@gmail.com wrote:

Thank you very much, but a small problem. DHIS2 only offers web services for reading and not writing.

2013/12/2 Lars Helge Øverland larshelge@gmail.com

All web api docs here:

http://www.dhis2.org/doc/snapshot/en/user/html/ch25.html


Riddy NDOMA
Software Developer
Skype: riddyndoma, G+: riddyndoma, FB: riddy ndoma

Twitter: riddyndoma, LinkedIn: riddy ndoma
Blog: http://riddyndoma.blogspot.com/

Vous servir est mon désire (Serving you is my desire)

On Mon, Dec 2, 2013 at 2:35 PM, Morten Olav Hansen mortenoh@gmail.com wrote:

Hi Riddy,

For creating an android client, I would look at the information here [1].

[1] http://www.dhis2.org/doc/snapshot/en/user/html/ch25s24.html


Morten

On Mon, Dec 2, 2013 at 2:28 PM, riddy ndoma riddyndoma@gmail.com wrote:

Lars thank you for your involvement. I wanted to know if there are other web services but which are not directly visible in the Web module API (Help Menu> Web API). if so what are the urls?


Mailing list: https://launchpad.net/~dhis2-devs

Post to : dhis2-devs@lists.launchpad.net

Unsubscribe : https://launchpad.net/~dhis2-devs

More help : https://help.launchpad.net/ListHelp

2013/12/2 Lars Helge Øverland larshelge@gmail.com

Lars

Okay - at the moment we do not have a service for that, sorry.


Riddy NDOMA
Software Developer
Skype: riddyndoma, G+: riddyndoma, FB: riddy ndoma

Twitter: riddyndoma, LinkedIn: riddy ndoma
Blog: http://riddyndoma.blogspot.com/

Vous servir est mon désire (Serving you is my desire)

On Mon, Dec 2, 2013 at 1:31 PM, riddy ndoma riddyndoma@gmail.com wrote:

Hi @Lars,
I have already an interface that displays a list of users now I’ll make an interface that display users Currently logged, but I do not see in the API Web module, the url that exposes this service.

2013/12/2 Lars Helge Øverland larshelge@gmail.com

Hi Riddy,

could you elaborate on what you mean with “connected users”, ie. is it users currently logged in or user accounts registered?

JSON is typically the preferred representation format for Android development. You can get all user accounts from the Web API in json like this:

http://apps.dhis2.org/demo/api/users.json?paging=false

Lars


Riddy NDOMA
Software Developer
Skype: riddyndoma, G+: riddyndoma, FB: riddy ndoma

Twitter: riddyndoma, LinkedIn: riddy ndoma
Blog: http://riddyndoma.blogspot.com/

Vous servir est mon désire (Serving you is my desire)

On Sat, Nov 30, 2013 at 1:51 PM, Jason Pickering jason.p.pickering@gmail.com wrote:

Have you had a look at the existing Android client available in the Play Store? It is using the Web API which as detailed in the documentation.

Regards,

Jason

–Sent from my mobile

On Nov 30, 2013 12:05 PM, “riddy ndoma” riddyndoma@gmail.com wrote:

Hello dear developers,

I am trying to develop an Android mobile client for our DHIS2, I wanted to know if DHIS2 offers a web service to find connected users to the system. if so what is URL.

Also whether DHIS2 to other web services which are not directly visible by clicking on “Help >> Web API”. What are their URLs?

My android mobile client uses the web services like Rest / Json


Riddy NDOMA
Software Developer
Skype: riddyndoma, G+: riddyndoma, FB: riddy ndoma

Twitter: riddyndoma, LinkedIn: riddy ndoma
Blog: http://riddyndoma.blogspot.com/

Vous servir est mon désire (Serving you is my desire)


Mailing list: https://launchpad.net/~dhis2-devs

Post to : dhis2-devs@lists.launchpad.net

Unsubscribe : https://launchpad.net/~dhis2-devs

More help : https://help.launchpad.net/ListHelp


Mailing list: https://launchpad.net/~dhis2-devs

Post to : dhis2-devs@lists.launchpad.net

Unsubscribe : https://launchpad.net/~dhis2-devs

More help : https://help.launchpad.net/ListHelp

You could also take the following approach

First call:

http://apps.dhis2.org/demo/api/users.jsonp

From there grab the href for each user

Loop through the users’ href and grab the lastLogin timestamp.

As an alternative, though it doesn’t use the Web API you could also use the following regex on your log files assuming your Tomcat files are on /var/log/tomcat7/catlina.out

grep “Login success” /var/log/tomcat7/catalina.out

Dan Cocos
BAO Systemswww.baosystems.com

···

On Mon, Dec 2, 2013 at 4:14 PM, riddy ndoma riddyndoma@gmail.com wrote:

Thank you @Morten. I now fully understand the spirit of the Web module API. But I suggest that if possible to integrate to superior versions the web service that lists the users logged into the system. this is very good for the administrator does not need to go on the computer to know the people who use the system.
Regards,


Mailing list: https://launchpad.net/~dhis2-devs

Post to : dhis2-devs@lists.launchpad.net

Unsubscribe : https://launchpad.net/~dhis2-devs

More help : https://help.launchpad.net/ListHelp

2013/12/2 Morten Olav Hansen mortenoh@gmail.com

What exactly are you trying to do Riddy? Its true that we don’t support writing for all our endpoints, not yet at least. We do support writes for dataValues etc, so that creating a data entry client for Android should be very doable (and it has been done for event based data already).

If you are trying to creating a client for all of dhis2 functionality, that is not currently supported


Riddy NDOMA
Software Developer
Skype: riddyndoma, G+: riddyndoma, FB: riddy ndoma

Twitter: riddyndoma, LinkedIn: riddy ndoma
Blog: http://riddyndoma.blogspot.com/

Vous servir est mon désire (Serving you is my desire)


Morten

On Mon, Dec 2, 2013 at 2:56 PM, riddy ndoma riddyndoma@gmail.com wrote:

Thank you very much, but a small problem. DHIS2 only offers web services for reading and not writing.

2013/12/2 Lars Helge Øverland larshelge@gmail.com

All web api docs here:

http://www.dhis2.org/doc/snapshot/en/user/html/ch25.html


Riddy NDOMA
Software Developer
Skype: riddyndoma, G+: riddyndoma, FB: riddy ndoma

Twitter: riddyndoma, LinkedIn: riddy ndoma
Blog: http://riddyndoma.blogspot.com/

Vous servir est mon désire (Serving you is my desire)

On Mon, Dec 2, 2013 at 2:35 PM, Morten Olav Hansen mortenoh@gmail.com wrote:

Hi Riddy,

For creating an android client, I would look at the information here [1].

[1] http://www.dhis2.org/doc/snapshot/en/user/html/ch25s24.html


Morten

On Mon, Dec 2, 2013 at 2:28 PM, riddy ndoma riddyndoma@gmail.com wrote:

Lars thank you for your involvement. I wanted to know if there are other web services but which are not directly visible in the Web module API (Help Menu> Web API). if so what are the urls?


Mailing list: https://launchpad.net/~dhis2-devs

Post to : dhis2-devs@lists.launchpad.net

Unsubscribe : https://launchpad.net/~dhis2-devs

More help : https://help.launchpad.net/ListHelp

2013/12/2 Lars Helge Øverland larshelge@gmail.com

Lars

Okay - at the moment we do not have a service for that, sorry.


Riddy NDOMA
Software Developer
Skype: riddyndoma, G+: riddyndoma, FB: riddy ndoma

Twitter: riddyndoma, LinkedIn: riddy ndoma
Blog: http://riddyndoma.blogspot.com/

Vous servir est mon désire (Serving you is my desire)

On Mon, Dec 2, 2013 at 1:31 PM, riddy ndoma riddyndoma@gmail.com wrote:

Hi @Lars,
I have already an interface that displays a list of users now I’ll make an interface that display users Currently logged, but I do not see in the API Web module, the url that exposes this service.

2013/12/2 Lars Helge Øverland larshelge@gmail.com

Hi Riddy,

could you elaborate on what you mean with “connected users”, ie. is it users currently logged in or user accounts registered?

JSON is typically the preferred representation format for Android development. You can get all user accounts from the Web API in json like this:

http://apps.dhis2.org/demo/api/users.json?paging=false

Lars


Riddy NDOMA
Software Developer
Skype: riddyndoma, G+: riddyndoma, FB: riddy ndoma

Twitter: riddyndoma, LinkedIn: riddy ndoma
Blog: http://riddyndoma.blogspot.com/

Vous servir est mon désire (Serving you is my desire)

On Sat, Nov 30, 2013 at 1:51 PM, Jason Pickering jason.p.pickering@gmail.com wrote:

Have you had a look at the existing Android client available in the Play Store? It is using the Web API which as detailed in the documentation.

Regards,

Jason

–Sent from my mobile

On Nov 30, 2013 12:05 PM, “riddy ndoma” riddyndoma@gmail.com wrote:

Hello dear developers,

I am trying to develop an Android mobile client for our DHIS2, I wanted to know if DHIS2 offers a web service to find connected users to the system. if so what is URL.

Also whether DHIS2 to other web services which are not directly visible by clicking on “Help >> Web API”. What are their URLs?

My android mobile client uses the web services like Rest / Json


Riddy NDOMA
Software Developer
Skype: riddyndoma, G+: riddyndoma, FB: riddy ndoma

Twitter: riddyndoma, LinkedIn: riddy ndoma
Blog: http://riddyndoma.blogspot.com/

Vous servir est mon désire (Serving you is my desire)


Mailing list: https://launchpad.net/~dhis2-devs

Post to : dhis2-devs@lists.launchpad.net

Unsubscribe : https://launchpad.net/~dhis2-devs

More help : https://help.launchpad.net/ListHelp


Mailing list: https://launchpad.net/~dhis2-devs

Post to : dhis2-devs@lists.launchpad.net

Unsubscribe : https://launchpad.net/~dhis2-devs

More help : https://help.launchpad.net/ListHelp