Skip site navigation (1)Skip section navigation (2)

FreeBSD Manual Pages

  
 
  

home | help
Net::Google::Calendar:UserCContributed PerNet::Google::Calendar::WebContent(3)

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',
	       web_content => {
		   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',
	       web_content => {
		   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',
	       web_content => {
		   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->web_content(
		   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).

METHODS
   new	[opt[s]]
       Options can be

       title
	   The title of	the web	content

       href A url of an	icon to	use
       type
	   The mime type of content. Can be either "text/html" "image/*" or
	   "application/x-google-gadgets+xml"

	   Not needed for "text/html".

       web_content
	   The actual web content. This	just gets passed to the
	   "web_content()" method.

   web_content [param[s]]
       Takes a hash of parameters. Valid are

       url The url of the content.

       width
	   The width of	the content.

       height
	   The height of the content.

       type
	   The mime-type (see above)

       prefs
	   This	takes a	hash ref and all pairs are turned into
	   "webContentGadgetPref" entries.

perl v5.24.1			  2017-07-Net::Google::Calendar::WebContent(3)

NAME | SYNOPSIS | METHODS

Want to link to this manual page? Use this URL:
<https://www.freebsd.org/cgi/man.cgi?query=Net::Google::Calendar::WebContent&sektion=3&manpath=FreeBSD+12.1-RELEASE+and+Ports>

home | help