Posted on 2009-12-17 16:34:19-08 by kyloe
XML Atom not parsing
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 =====
Direct Responses: Write a response
Perl Weekly newsletter
A free weekly newsletter for people who are busy to read all the blogs. click here to check it out.