Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

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

share|improve this question
    
I have edited the question title, yours was pretty sure to get downvotes! ;) –  Rutwick Gangurde Jul 27 '12 at 7:22
    
Thanks, downvotes is not a problem. Solution is important. –  Rama raju dantuluri Jul 27 '12 at 7:25
add comment

2 Answers

up vote 2 down vote accepted

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.

share|improve this answer
    
Thank you Khirok for your suggestion. I would have given an upvote for this , Unfortunately i am not eligible. I did the same thing, looking into database and started writing queries to fetch data. –  Rama raju dantuluri Sep 14 '12 at 7:17
    
@Ramarajudantuluri The problem why you can't do this is that you don't accept answers - which you should do once you got a solution. –  kaiser Oct 4 '12 at 9:43
add comment

You can try to import the events from your calendar (to do this click the "Subscribe" button) and then use this converter:

http://ical2json.pb.io/the-website.com/path/to/file.ics

For example you have the link: http://www.mysite.com/events.ics.

To get this data in JSON format use the URL: http://ical2json.pb.io/www.mysite.com/events.ics.

I got this help from the team who created All-In-One calendar events

Hope this will help You

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.