NAME
Net::Google::Calendar::WebContent - handle web content
SYNOPSIS
Web content can be images ...
my $content = Net::Google::Calendar::WebContent->new(
title => 'World Cup',
href => 'http://www.google.com/calendar/images/google-holiday.gif',
webContent => {
url => "http://www.google.com/logos/worldcup06.gif"
width => 276,
height => 120,
type => 'image/gif',
}
);
$entry->add_link($content);
or html ...
my $content = Net::Google::Calendar::WebContent->new(
title => 'Embedded HTML',
href => 'http://www.example.com/favico.icon',
webContent => {
url => "http://www.example.com/some.html"
width => 276,
height => 120,
type => 'text/html',
}
);
$entry->add_link($content);
or special Google Gadgets (http://www.google.com/ig/directory)
my $content = Net::Google::Calendar::WebContent->new(
title => 'DateTime Gadget (a classic!)',
href => 'http://www.google.com/favicon.ico',
webContent => {
url => 'http://google.com/ig/modules/datetime.xml',
width => 300,
height => 136,
type => 'application/x-google-gadgets+xml',
}
);
or my $content = Net::Google::Calendar::WebContent->new( title => 'Word of the Day', href => 'http://www.thefreedictionary.com/favicon.ico', ); $content->webContent( url => 'http://www.thefreedictionary.com/_/WoD/wod-module.xml', width => 300, height => 136, type => 'application/x-google-gadgets+xml', prefs => { Days => 1, Format => 0 }, );
(note the ability to set webContentGadgetPrefs using the special prefs attribute).