|
NAMEWebService::GData::Feed::Entry - Base class wrapping json atom feed entry tags for google data API v2.SYNOPSISuse WebService::GData::Feed::Entry; my $feed = new WebService::GData::Feed::Entry($jsonfeed->{entry}->[0]); $feed->title; $feed->author; $feed->summary; $feed->published; $feed->content DESCRIPTIONinherits from WebService::GData::FeedThis package wraps the entry tag from a query for a feed using the json format of the Google Data API v2 (no other format is supported!). It gives you access to some of the entry tag data via wrapper methods. Unless you implement a service, you should never instantiate this class directly. CONSTRUCTOR new Accept the content of the entry tag from a feed that has
been perlified (from_json($json_string)) and an optional request
object,WebService::GData::Base.
The request object is not use in this class. INHERITED METHODSThis package inherits from WebService::GData::Feed,therefore, you get access to the same methods. These inherited methods will return the corresponding entry data, not the feed data.id title updated category link author etag See WebService::GData::Feed for further information about these methods. GET METHODScontentget the content of the entry. Parameters
Returns
Example: use WebService::GData::Feed::Entry; my $entry = new WebService::GData::Feed::Entry($entry); $entry->content->src();#http://www.youtube.com/v/qWAY3... $entry->content->type();#application/x-shockwave-flash content_type Get the content type of the entry. Shortcut for
$entry->content->type.
content_source Get the content source of the entry.Shortcut for
$entry->content->src.
published Get the publication date of the entry.
Parameters
Returns
Example: use WebService::GData::Feed::Entry; my $feed = new WebService::GData::Feed::Entry($jsonentry); $feed->published();#"2010-09-20T13:49:20.028Z" SET/GET METHODSAll the following methods work as both setter and getters.summary set/get the summary (description) of the entry. Beware
that not all services implement this tag.
Parameters
Returns
Example: use WebService::GData::Feed::Entry; my $entry = new WebService::GData::Feed::Entry(); $entry->summary("This video is about..."); $entry->summary();#This video is about... BUGS AND LIMITATIONSIf you do me the favor to _use_ this module and find a bug, please email me i will try to do my best to fix it (patches welcome)!AUTHORshiriru <shirirulestheworld[arobas]gmail.com>LICENSE AND COPYRIGHTThis library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.POD ERRORSHey! The above document had some coding errors, which are explained below:
Visit the GSP FreeBSD Man Page Interface. |