WebService::Recruit::FromA::JobSearch - FromA Navi Web Service "jobSearch" API
use WebService::Recruit::FromA; my $service = WebService::Recruit::FromA->new(); my $param = { 'api_key' => $ENV{'WEBSERVICE_RECRUIT_FROMA_KEY'}, 'ksjcd' => '04', 'shrt_indx_cd' => '1001', }; my $res = $service->jobSearch( %$param ); my $data = $res->root; print "Code: $data->Code\n"; print "TotalOfferAvailable: $data->TotalOfferAvailable\n"; print "TotalOfferReturned: $data->TotalOfferReturned\n"; print "PageNumber: $data->PageNumber\n"; print "EditionName: $data->EditionName\n"; print "...\n";
This module is a interface for the jobSearch API. It accepts following query parameters to make an request.
jobSearch
my $param = { 'api_key' => 'XXXXXXXX', 'ksjcd' => '04', 'edition_cd' => '1', 'xml_block' => '1', 'm_area_cd' => 'i1', 's_area_cd' => '1i1001', 'nv_jb_type_cd' => '101', 'shrt_indx_cd' => '1001', 'wrk_dy_num_ctgry_cd' => '01', 'hours_ctgry_cd' => '01', 'regu_indx_s_class_cd' => '1101', 'emp_ed_m_area_cd' => 'i1', 'employ_frm_ctgry_cd' => '01', 'pull_sal_cd' => '01', 'no_exp_ok_f' => '1', }; my $res = $service->jobSearch( %$param );
$service above is an instance of WebService::Recruit::FromA.
$service
This returns the root element of the response.
my $root = $res->root;
You can retrieve each element by the following accessors.
$root->Code $root->TotalOfferAvailable $root->TotalOfferReturned $root->PageNumber $root->EditionName $root->Offer $root->Offer->[0]->Catch $root->Offer->[0]->OfferId $root->Offer->[0]->Url $root->Offer->[0]->OfferStartDate $root->Offer->[0]->OfferEndDate $root->Offer->[0]->Zipcode $root->Offer->[0]->Prefecture $root->Offer->[0]->City $root->Offer->[0]->VisualIndices $root->Offer->[0]->TimeIndices $root->Offer->[0]->MinimumWorkDays $root->Offer->[0]->ShortIndex $root->Offer->[0]->CorporateName $root->Offer->[0]->TransPortation $root->Offer->[0]->JobTypeDetail $root->Offer->[0]->PayText $root->Offer->[0]->OfferConditionList $root->Offer->[0]->GeoPointList $root->Offer->[0]->VisualIndices->VisualIndex $root->Offer->[0]->TimeIndices->TimeIndex $root->Offer->[0]->OfferConditionList->OfferCondition $root->Offer->[0]->GeoPointList->GeoPoint $root->Offer->[0]->VisualIndices->VisualIndex->[0]->VisualSize $root->Offer->[0]->VisualIndices->VisualIndex->[0]->VisualName $root->Offer->[0]->VisualIndices->VisualIndex->[0]->VisualImageUrl $root->Offer->[0]->OfferConditionList->OfferCondition->[0]->TypeOfEmployment
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::FromA
RECRUIT Media Technology Labs <mtl@cpan.org>
Copyright 2008 RECRUIT Media Technology Labs
To install WebService::Recruit::FromA, copy and paste the appropriate command in to your terminal.
cpanm
cpanm WebService::Recruit::FromA
CPAN shell
perl -MCPAN -e shell install WebService::Recruit::FromA
For more information on module installation, please visit the detailed CPAN module installation guide.