Tuesday 4 September 2012

Getting a list of upcoming events from GCal


The aim is to email myself a list of all events in my calendar(s), along with 'days until...', to help me plan for upcoming events better.

I'm using Perl, because of CPAN.

So far, I've managed to connect and get event data.

  • UPDATE, events now limited to future events.
  • UPDATE, 'all' (10k) events now retrieved.
  • UPDATE, the number of days remaining is now calculated.


See:
1) http://search.cpan.org/~plytle/Net-Google-Calendar-1.01/lib/Net/Google/Calendar.pm
2) http://search.cpan.org/~plytle/Net-Google-Calendar-1.01/lib/Net/Google/Calendar/Entry.pm


Here's the code:
http://github.com/dbolser/GCal-Upcoming