Page 1 of 1

Two way communication with a Wordpress Database

Posted: Tue Oct 29, 2013 10:38 pm
by Charles Smith

I need to create a simple ( loosely stated :) ) that is a mobile petition form. We will have the same form created on a Wordpress website. Is there a way to sync data between the phone app and the Wordpress database form tables? Basically what I would like to do is once we get a certain amount of electronic signatures collected via the form, I want to display the accruing number within the app, but it would only make sense if it displayed the total collected from the web and the app together.

If I am making any sense at all...any feedback is welcomed and appreciated.

Thank you,
Charles


Two way communication with a Wordpress Database

Posted: Tue Oct 29, 2013 10:47 pm
by maxkatz

You can do that (well, you can do anything you want really). Wordpress has REST API. Every time your user opens the app, you can read the count and display the number of signatures.


Two way communication with a Wordpress Database

Posted: Tue Oct 29, 2013 11:16 pm
by Charles Smith

Cool. Is there a way of combining the count from the web with the count from the phone or would they need to be displayed separately?

Thank you for the quick reply.


Two way communication with a Wordpress Database

Posted: Tue Oct 29, 2013 11:22 pm
by maxkatz

You can. One option is to have both clients (mobile, Wordpress) use the same API.


Two way communication with a Wordpress Database

Posted: Wed Oct 30, 2013 12:32 am
by Charles Smith

Max,

Thank you so much for the replies. I look forward to using the service.

Chuck