WebService::Recruit::HotPepper::LargeArea - HotPepper Web Service "LargeArea" API
use WebService::Recruit::HotPepper; my $api = WebService::Recruit::HotPepper->new(); $api->key( 'xxxxxxxxxxxxxxxx' ); my $res = $api->LargeArea(); die 'error!' if $res->is_error; my $list = $res->root->LargeArea; foreach my $area ( @$list ) { print "name: ", $area->LargeAreaName, "\n"; print "code: ", $area->LargeAreaCD, "\n"; print "\n"; }
This module is an interface for the LargeArea API. It accepts following query parameters to make an request.
LargeArea
my $res = $hpp->LargeArea();
$hpp above is an instance of WebService::Recruit::HotPepper.
$hpp
This returns the root element of the response.
my $root = $res->root;
You can retrieve each element by the following accessors.
$root->NumberOfResults; $root->APIVersion; $root->LargeArea->[0]->LargeAreaName; $root->LargeArea->[0]->LargeAreaCD; $root->LargeArea->[0]->ServiceAreaCD;
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::HotPepper
Toshimasa Ishibashi http://iandeth.dyndns.org/
This module is unofficial and released by the author in person.
Yusuke Kawasaki http://www.kawa.net/
For creating/preparing all the base modules and stuff.
Copyright (c) 2007 Toshimasa Ishibashi. All rights reserved. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
To install WebService::Recruit::HotPepper, copy and paste the appropriate command in to your terminal.
cpanm
cpanm WebService::Recruit::HotPepper
CPAN shell
perl -MCPAN -e shell install WebService::Recruit::HotPepper
For more information on module installation, please visit the detailed CPAN module installation guide.