GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages


Manual Reference Pages  -  WEBSERVICE::GDATA::FEED::ENTRY (3)

.ds Aq ’

NAME

WebService::GData::Feed::Entry - Base class wrapping json atom feed entry tags for google data API v2.

CONTENTS

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.

<B>ParametersB>
none
<B>ReturnsB>
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.

<B>ParametersB>
none - getter

<B>ReturnsB>
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.

<B>ParametersB>
none - as a getter
summary:Scalar as a setter

<B>ReturnsB>
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! <B>The above document had some coding errors, which are explained below:B>
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’
Search for    or go to Top of page |  Section 3 |  Main Index


perl v5.20.3 WEBSERVICE::GDATA::FEED::ENTRY (3) 2010-11-17

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with manServer 1.07.