WebService::GData::Feed::Entry - Base class wrapping json atom feed entry tags for google data API v2.
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
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.
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.
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.
See WebService::GData::Feed for further information about these methods.
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
Get the content type of the entry. Shortcut for $entry->content->type.
Get the content source of the entry.Shortcut for $entry->content->src.
Get the publication date of the entry.
published:Scalar
use WebService::GData::Feed::Entry; my $feed = new WebService::GData::Feed::Entry($jsonentry); $feed->published();#"2010-09-20T13:49:20.028Z"
All the following methods work as both setter and getters.
set/get the summary (description) of the entry. Beware that not all services implement this tag.
summary:Scalar
use WebService::GData::Feed::Entry; my $entry = new WebService::GData::Feed::Entry(); $entry->summary("This video is about..."); $entry->summary();#This video is about...
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)!
shiriru <shirirulestheworld[arobas]gmail.com>
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
4 POD Errors
The following errors were encountered while parsing the POD:
You forgot a '=back' before '=head2'
=back without =over
You forgot a '=back' before '=head3'
To install WebService::GData, copy and paste the appropriate command in to your terminal.
cpanm
cpanm WebService::GData
CPAN shell
perl -MCPAN -e shell install WebService::GData
For more information on module installation, please visit the detailed CPAN module installation guide.