FreeBSD Manual Pages
WebService::GData::FeeUsernContributed Perl DWebService::GData::Feed::Entry(3) NAME WebService::GData::Feed::Entry - Base class wrapping json atom feed entry tags for google data API v2. SYNOPSIS use WebService::GData::Feed::Entry; my $feed = new WebService::GData::Feed::Entry($jsonfeed->{entry}->[0]); $feed->title; $feed->author; $feed->summary; $feed->published; $feed->content DESCRIPTION inherits from WebService::GData::Feed This 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 METHODS This 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 METHODS content get the content of the entry. Parameters "none" Returns "WebService::GData::Node::Content" 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 "none" - getter Returns "published:Scalar" Example: use WebService::GData::Feed::Entry; my $feed = new WebService::GData::Feed::Entry($jsonentry); $feed->published();#"2010-09-20T13:49:20.028Z" SET/GET METHODS All 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 "none" - as a getter "summary:Scalar" as a setter Returns "none" - as a setter "summary:Scalar" as a getter 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 LIMITATIONS If 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)! AUTHOR shiriru <shirirulestheworld[arobas]gmail.com> LICENSE AND COPYRIGHT This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself. POD ERRORS Hey! The above document had some coding errors, which are explained below: Around line 83: You forgot a '=back' before '=head2' Around line 138: =back without =over Around line 148: You forgot a '=back' before '=head3' Around line 154: You forgot a '=back' before '=head3' perl v5.32.1 2010-11-17 WebService::GData::Feed::Entry(3)
NAME | SYNOPSIS | DESCRIPTION | BUGS AND LIMITATIONS | AUTHOR | LICENSE AND COPYRIGHT | POD ERRORS
Want to link to this manual page? Use this URL:
<https://www.freebsd.org/cgi/man.cgi?query=WebService::GData::Feed::Entry&sektion=3&manpath=FreeBSD+13.0-RELEASE+and+Ports>