|
Trying to use Net-Google-Calendar, but it seems that the XML Atm code is failing in some way, and cant seem to get a grip on it. Login succedes - but no calendars appear when using get_calendar (array length is zero) - have dumped the XML out - and appears to be retrieved OK - but XML::ATOM::Feed->new just returns 0 ... any ideas?
use Net::Google::Calendar;
use strict;
use warnings;
# this will get you a read-write feed.
my $cal = Net::Google::Calendar->new;
print "Login\n";
$cal->login("ian.bottomley\@gmail.com", "****");
print $cal->{url};
print "\n=====\n";
my @cals = $cal->get_calendars;
print @cals."\n";
print "\n=====\n";
Gives
Login
http://google.com/calendar/feeds/ian.bottomley@gmail.com/private/full
=====
Getting calendars
URL = http://www.google.com/calendar/feeds/default/allcalendars/full
0
=====
|