NAME
WebService::Recruit::Akasugu::MiddleCategory - Akasugu.net Web Service "middle_category" API
SYNOPSIS
my
$service
= WebService::Recruit::Akasugu->new();
my
$param
= {
'key'
=>
$ENV
{
'WEBSERVICE_RECRUIT_KEY'
},
};
my
$res
=
$service
->middle_category(
%$param
);
my
$data
=
$res
->root;
"api_version: $data->api_version\n"
;
"results_available: $data->results_available\n"
;
"results_returned: $data->results_returned\n"
;
"results_start: $data->results_start\n"
;
"middle_category: $data->middle_category\n"
;
"...\n"
;
DESCRIPTION
This module is a interface for the middle_category
API. It accepts following query parameters to make an request.
my
$param
= {
'key'
=>
'XXXXXXXX'
,
'large_code'
=>
'2'
,
'middle_code'
=>
'211'
,
'keyword'
=>
'ベビー'
,
};
my
$res
=
$service
->middle_category(
%$param
);
$service
above is an instance of WebService::Recruit::Akasugu.
METHODS
root
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
->middle_category
$root
->middle_category->[0]->code
$root
->middle_category->[0]->name
$root
->middle_category->[0]->large_category
$root
->middle_category->[0]->large_category->code
$root
->middle_category->[0]->large_category->name
xml
This returns the raw response context itself.
$res
->xml,
"\n"
;
code
This returns the response status code.
my
$code
=
$res
->code;
# usually "200" when succeeded
is_error
This returns true value when the response has an error.
die
'error!'
if
$res
->is_error;
SEE ALSO
AUTHOR
RECRUIT Media Technology Labs <mtl@cpan.org>
COPYRIGHT
Copyright 2008 RECRUIT Media Technology Labs
1 POD Error
The following errors were encountered while parsing the POD:
- Around line 87:
Non-ASCII character seen before =encoding in ''ベビー','. Assuming CP1252