WebService::Recruit::CarSensor::LargeArea - CarSensor.net Web Service "large_area" API
use WebService::Recruit::CarSensor; my $service = WebService::Recruit::CarSensor->new(); my $param = { 'key' => $ENV{'WEBSERVICE_RECRUIT_KEY'}, }; my $res = $service->large_area( %$param ); my $data = $res->root; print "api_version: $data->api_version\n"; print "results_available: $data->results_available\n"; print "results_returned: $data->results_returned\n"; print "results_start: $data->results_start\n"; print "large_area: $data->large_area\n"; print "...\n";
This module is a interface for the large_area API. It accepts following query parameters to make an request.
large_area
my $param = { 'key' => 'XXXXXXXX', 'code' => '3', }; my $res = $service->large_area( %$param );
$service above is an instance of WebService::Recruit::CarSensor.
$service
This returns the root element of the response.
my $root = $res->root;
You can retrieve each element by the following accessors.
$root->api_version $root->results_available $root->results_returned $root->results_start $root->large_area $root->large_area->[0]->code $root->large_area->[0]->name
This returns the raw response context itself.
print $res->xml, "\n";
This returns the response status code.
my $code = $res->code; # usually "200" when succeeded
This returns true value when the response has an error.
die 'error!' if $res->is_error;
WebService::Recruit::CarSensor
RECRUIT Media Technology Labs <mtl@cpan.org>
Copyright 2008 RECRUIT Media Technology Labs
To install WebService::Recruit::CarSensor, copy and paste the appropriate command in to your terminal.
cpanm
cpanm WebService::Recruit::CarSensor
CPAN shell
perl -MCPAN -e shell install WebService::Recruit::CarSensor
For more information on module installation, please visit the detailed CPAN module installation guide.