WebService::Recruit::Shingaku - An Interface for Recruit Shingaku net Web Service
use WebService::Recruit::Shingaku; my $service = WebService::Recruit::Shingaku->new(); my $param = { 'key' => $ENV{'WEBSERVICE_RECRUIT_KEY'}, 'keyword' => 'æ•°å¦', 'pref_cd' => '12', }; my $res = $service->school( %$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("school: %s\n", $root->school); print "...\n";
リクルート進å¦ãƒ�ットã�«æŽ²è¼‰ã�•ã‚Œã�¦ã�„ã‚‹å¦æ ¡ã�Šã‚ˆã�³å�„種å¦å•�ãƒ»ä»•äº‹ãƒ»è³‡æ ¼ã‚’æ§˜ã€…ã�ªè»¸ã�§æ¤œç´¢ã�§ã��ã‚‹APIã�§ã�™ã€‚
This is the constructor method for this class.
my $service = WebService::Recruit::Shingaku->new();
This accepts optional parameters.
my $conf = { utf8_flag => 1, param => { # common parameters of this web service }, }; my $service = WebService::Recruit::Shingaku->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 school API. See WebService::Recruit::Shingaku::School for details.
school
my $res = $service->school( %$param );
This makes a request for subject API. See WebService::Recruit::Shingaku::Subject for details.
subject
my $res = $service->subject( %$param );
This makes a request for work API. See WebService::Recruit::Shingaku::Work for details.
work
my $res = $service->work( %$param );
This makes a request for license API. See WebService::Recruit::Shingaku::License for details.
license
my $res = $service->license( %$param );
This makes a request for pref API. See WebService::Recruit::Shingaku::Pref for details.
pref
my $res = $service->pref( %$param );
This makes a request for category API. See WebService::Recruit::Shingaku::Category for details.
category
my $res = $service->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/shingaku/
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 ''æ•°å¦','. Assuming CP1252
To install WebService::Recruit::Shingaku, copy and paste the appropriate command in to your terminal.
cpanm
cpanm WebService::Recruit::Shingaku
CPAN shell
perl -MCPAN -e shell install WebService::Recruit::Shingaku
For more information on module installation, please visit the detailed CPAN module installation guide.