How to get all events from ‘All in one Events calender’ plugin in JSON format?

I am using All in one Events Calendar plugin to add the events. It works fine in CMS. I would like to display the events data in mobile version. for this i used JSON-API for obtaining web-services in json format.

To obtain all events , I dint find any plugin which will full-fill my requirement. so i started writing php code and uploaded the getevents.php to www/.../services/getevents.php

When i execute the file it is redirected to Calendar page in my cms. But i am expecting a json formatted output of all the events.

Please suggest a solution…
Thanks

2 Answers
2

I had to do the same thing. I used the JSON API plugin and had to create a new controller for JSON API that read the specific data out of the tables that All-in-One created.

Unfortunately there really were not the right calls in the calendar plugin to access all the data (or at least on the older version I used this for) so I had to write the whole controller to do it.

It took only a few hours to do and was pretty trivial once you look at the database structure, so this would be my recommended method to do this.

Leave a Comment