WebService::Recruit::Eyeco - An Interface for Eyeco Web Service
use WebService::Recruit::Eyeco; my $service = WebService::Recruit::Eyeco->new(); my $param = { 'key' => $ENV{'WEBSERVICE_RECRUIT_KEY'}, 'large_category' => '101', 'order' => '1', 'price_max' => '5000', }; my $res = $service->item( %$param ); my $root = $res->root; printf("api_version: %s\n", $root->api_version); printf("results_available: %s\n", $root->results_available); printf("results_returned: %s\n", $root->results_returned); printf("results_start: %s\n", $root->results_start); printf("item: %s\n", $root->item); print "...\n";
eyeco[アイコ]に掲載されている商品をさまざまな検索軸で探せる商品情報APIです。
This is the constructor method for this class.
my $service = WebService::Recruit::Eyeco->new();
This accepts optional parameters.
my $conf = { utf8_flag => 1, param => { # common parameters of this web service }, }; my $service = WebService::Recruit::Eyeco->new( %$conf );
Add common parameter of tihs web service.
$service->add_param( param_key => param_value );
You can add multiple parameters by calling once.
$service->add_param( param_key1 => param_value1, param_key2 => param_value2, ...);
Returns common parameter value of the specified key.
my $param_value = $service->get( 'param_key' );
This makes a request for item API. See WebService::Recruit::Eyeco::Item for details.
item
my $res = $service->item( %$param );
This makes a request for large_category API. See WebService::Recruit::Eyeco::LargeCategory for details.
large_category
my $res = $service->large_category( %$param );
This makes a request for small_category API. See WebService::Recruit::Eyeco::SmallCategory for details.
small_category
my $res = $service->small_category( %$param );
This modules uses XML::TreePP module internally. Following methods are available to configure it.
$service->utf8_flag( 1 ); $service->user_agent( 'Foo-Bar/1.0 ' ); $service->lwp_useragent( LWP::UserAgent->new() ); $service->http_lite( HTTP::Lite->new() );
http://webservice.recruit.co.jp/eyeco/
RECRUIT Media Technology Labs <mtl@cpan.org>
Copyright 2008 RECRUIT Media Technology Labs
1 POD Error
The following errors were encountered while parsing the POD:
Non-ASCII character seen before =encoding in 'eyeco[アイコ]に掲載されている商品をさまざまな検索軸で探せる商品情報APIです。'. Assuming UTF-8
To install WebService::Recruit::Eyeco, copy and paste the appropriate command in to your terminal.
cpanm
cpanm WebService::Recruit::Eyeco
CPAN shell
perl -MCPAN -e shell install WebService::Recruit::Eyeco
For more information on module installation, please visit the detailed CPAN module installation guide.