NAME WebService::Recruit::FromA - An Interface for FromA Navi Web Service SYNOPSIS 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 $root = $res->root; printf("Code: %s\n", $root->Code); printf("TotalOfferAvailable: %s\n", $root->TotalOfferAvailable); printf("TotalOfferReturned: %s\n", $root->TotalOfferReturned); printf("PageNumber: %s\n", $root->PageNumber); printf("EditionName: %s\n", $root->EditionName); print "...\n"; DESCRIPTION ãŠä»•äº‹æ¤œç´¢webサービスã¯ã€ãƒ•ãƒãƒ ・エー ナビ上ã«ç™»éŒ²ã•ã‚Œã¦ã„ã‚‹ãŠä»•äº‹æƒ…å ±ã‚’å–å¾—ã§ãã‚‹API ã§ã™ã€‚ リクエストURL ã«ãƒ‘ラメータを付ã‘ãŸHTTP リクエストã«å¯¾ã—ã€XML å½¢å¼ã§ãƒ¬ã‚¹ãƒãƒ³ã‚¹ã‚’è¿”ã—ã¾ã™ï¼ˆREST æ–¹å¼ï¼‰ã€‚リクエストパラメータã¨ã—ã¦ã¯ã€è·ç¨®ã€å‹¤å‹™ 期間ã€å‹¤å‹™æ—¥æ•°ã€å‹¤å‹™æ™‚間帯ã€æ¤œç´¢ãƒ‘ターンã€å–得件 æ•°ã€ãƒ‡ãƒ¼ã‚¿å–得エリア(市区町æ‘レベル)ãªã©æ§˜ã€…㪠パラメータを備ãˆã¦ã„ã¾ã™ã€‚ ã¾ãŸã€æˆ»ã‚Šå€¤ã¨ã—ã¦è¿”ã•ã‚Œã‚‹XMLã«ã¯ã€ãŠä»•äº‹ã«é–¢ã™ã‚‹ 基本的ãªæƒ…å ±ã ã‘ã§ãªãã€å‹¤å‹™åœ°ã®éƒµä¾¿ç•ªå·ã‚„勤務地 ã®ç·¯åº¦ãƒ»çµŒåº¦æƒ…å ±ã€å†™çœŸç”»åƒã®URLãªã©ã‚‚å«ã¾ã‚Œã¦ãŠã‚Š ã€æ§˜ã€…ãªæƒ…å ±ã‚µãƒ¼ãƒ“ã‚¹ã¸ã®å±•é–‹ãŒæœŸå¾…ã§ãる仕様ã¨ãª ã£ã¦ã„ã¾ã™ã€‚ METHODS new This is the constructor method for this class. my $service = WebService::Recruit::FromA->new(); This accepts optional parameters. my $conf = { utf8_flag => 1, param => { # common parameters of this web service }, }; my $service = WebService::Recruit::FromA->new( %$conf ); add_param 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, ...); get_param Returns common parameter value of the specified key. my $param_value = $service->get( 'param_key' ); jobSearch This makes a request for "jobSearch" API. See WebService::Recruit::FromA::JobSearch for details. my $res = $service->jobSearch( %$param ); utf8_flag / user_agent / lwp_useragent / http_lite 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() ); SEE ALSO http://froma.yahoo.co.jp/s/contents/info/cont/web_service/index.html AUTHOR RECRUIT Media Technology Labs <mtl@cpan.org> COPYRIGHT Copyright 2008 RECRUIT Media Technology Labs