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  -  WWW::SPINN3R::SYNCED (3)

.ds Aq ’

NAME

WWW::Spinn3r::Synced - A interface that provides synced access to permalink and feed APIs.

CONTENTS

SYNOPOSIS



 use WWW::Spinn3r::Synced;
 use DateTime;

 my $API = {
          vendor                  => acme,   # required
          limit                   => 5,
          after                   => DateTime->now()->subtract(hours => 48),
 };

 my $spnr = new WWW::Spinn3r::Synced (params => $API, debug => 1);

 while(1) {
           my ($p, $f) = @{ $spnr->next };
           if ($p and $f) {
                  print "both! $$p{link}\n"
           } else {
                  print "permalink only! $$p{link}\n"
           }
 }



DESCRIPTION

WWW::Spinn3r::Synced synchronizes the permalink3.getDelta and feed3.getDelta APIs provided by Spinn3r such that next() returns both the permalink and feed items associated with a link.

<B>B>new()<B>B>

The same as new() in WWW::Spinn3r but doesn’t accept an api key, since both APIs are used internally by this module.

next()

Returns an arrayref, the first element is the permalink item and the second element is the feed item. When a feed item is not available, the permalink is returned as first item, and the second item is set to undef.

SEE ALSO

examples/synced.pl, WWW::Spinn3r

AUTHOR

Dan Brumleve <opensource@slaant.com>
Search for    or go to Top of page |  Section 3 |  Main Index


perl v5.20.3 WWW::SPINN3R::SYNCED (3) 2009-01-08

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