NAME
WebService::Search123 - Interface to the Search123 API.
VERSION
Version 0.02
SYNOPSIS
The Search123 API interface.
use WebService::Search123;
my $s123 = WebService::Search123->new( aid => 99999 );
foreach my $ad ( $s123->ads )
{
print $ad->title;
}
DESCRIPTION
Interface to the Search123 platform for searching for ads.
use WebService::Search123;
$WebService::Search123::DEBUG = 1;
my $s123 = WebService::Search123->new(
aid => 10057,
keyword => 'ipod',
client => {
ip => '88.208.204.52',
ua => 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_6_8) AppleWebKit/534.59.8 (KHTML, like Gecko) Version/5.1.9 Safari/534.59.8',
ref => 'http://www.ultimatejujitsu.com/jujitsu-for-beginners/',
},
);
binmode STDOUT, ":encoding(UTF-8)";
foreach my $ad ( $s123->ads )
{
print $ad->title . "\n";
}
METHODS
Attributes
ua
The internal LWP::UserAgent to use.
secure
Flag to indicate whether to use https or http (default).
aid
Your account ID with Search123.
keyword
The user-supplied keywords to search against.
ads
The returned list of ad objects based on the criteria supplied.
See WebService::Search123::Ad for details on these objects.
took
How long the underlying HTTP API request took.