I'm attempting to write a Perl bot that checks if there is a current event on a calendar. If so, it will display information about the event in an IRC channel.
As such, I'd like to use the feed to get the nearest present/future event to the current date. I've tried the following: http://www.google.com/calendar/feeds/xxxxxxxxxxx/private/basic?futureevents=true&orderby=starttime&sortorder=ascending&max-results=1 However, this gives me the earliest possible event - ie. an event which has already passed. If I use sortorder=descending, I am given the latest non-recurring event - which is in 2012. If I remove futureevents=true, I receive entirely different results. I'm using both recurring and non-recurring events, which seems to be causing part of the problem. Does anyone have any idea what I'm doing wrong? Thanks. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google Calendar Data API" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/google-calendar-help-dataapi?hl=en -~----------~----~----~----~------~----~------~--~---
