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
WebService::GData::Feed::Entry(3) User Contributed Perl Documentation WebService::GData::Feed::Entry(3)

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.

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.

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.

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"

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

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.

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'
2010-11-17 perl v5.32.1

Search for    or go to Top of page |  Section 3 |  Main Index

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