-
-
02 Aug 2012 04:21:32 UTC
- Distribution: eBay-API-Simple
- Source (raw)
- Browse (raw)
- Changes
- How to Contribute
- Issues (3)
- Testers (477 / 0 / 0)
- Kwalitee
Bus factor: 0- 97.62% Coverage
- License: unknown
- Activity
24 month- Tools
- Download (17.82KB)
- MetaCPAN Explorer
- Permissions
- Subscribe to distribution
- Permalinks
- This version
- Latest version
and 1 contributors-
Tim Keefer
- Dependencies
- HTTP::Headers
- HTTP::Request
- JSON
- LWP::UserAgent
- URI
- URI::Escape
- XML::LibXML
- XML::Parser
- XML::Simple
- YAML
- and possibly others
- Reverse dependencies
- CPAN Testers List
- Dependency graph
NAME
eBay::API::Simple::Parallel - Support for parallel requests
USAGE
my $pua = eBay::API::Simple::Parallel->new(); my $call1 = eBay::API::Simple::RSS->new( { parallel => $pua, } ); $call1->execute( 'http://worldofgood.ebay.com/Clothes-Shoes-Men/43/list?format=rss', ); my $call2 = eBay::API::Simple::RSS->new( { parallel => $pua, } ); $call2->execute( 'http://worldofgood.ebay.com/Home-Garden/46/list?format=rss' ); $pua->wait(); if ( $pua->has_error() ) { print "ONE OR MORE FAILURES!\n"; } print $call1->request_content() . "\n"; print $call2->response_content() "\n";
PUBLIC METHODS
new()
my $pua = ebay::API::Simple::Parallel->new();
wait( $timeout )
$pua->wait();
This method will wait for all requests to complete with an optional timeout.
An array of object instances will be returned.
has_error
Returns true if any of the calls contain an error.
AUTHOR
Brian Gontowski <bgontowski@gmail.com>
Module Install Instructions
To install eBay::API::Simple, copy and paste the appropriate command in to your terminal.
cpanm eBay::API::Simple
perl -MCPAN -e shell install eBay::API::Simple
For more information on module installation, please visit the detailed CPAN module installation guide.