Skip site navigation (1)Skip section navigation (2)

FreeBSD Manual Pages

  
 
  

home | help
WWW::Spinn3r::Synced(3User Contributed Perl DocumentatiWWW::Spinn3r::Synced(3)

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

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.

new()
       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>

perl v5.32.0			  2009-01-08	       WWW::Spinn3r::Synced(3)

NAME | SYNOPOSIS | DESCRIPTION | new() | next() | SEE ALSO | AUTHOR

Want to link to this manual page? Use this URL:
<https://www.freebsd.org/cgi/man.cgi?query=WWW::Spinn3r::Synced&sektion=3&manpath=FreeBSD+12.2-RELEASE+and+Ports>

home | help