Toshimasa Ishibashi - 石橋 利真 > WebService-Recruit-HotPepper > WebService::Recruit::HotPepper::Budget

Download:
WebService-Recruit-HotPepper-0.03.tar.gz

Dependencies

Annotate this POD

View/Report Bugs
Module Version: 0.02   Source  

NAME ^

WebService::Recruit::HotPepper::Budget - HotPepper Web Service "Budget" API

SYNOPSIS ^

    use WebService::Recruit::HotPepper;

    my $api = WebService::Recruit::HotPepper->new();
    $api->key( 'xxxxxxxxxxxxxxxx' );

    my $res = $api->Budget();
    die 'error!' if $res->is_error;

    my $list = $res->root->Budget;
    foreach my $area ( @$list ) {
        print "label: ", $area->BudgetDesc, "\n";
        print "code:  ", $area->BudgetCD, "\n";
        print "\n";
    }

DESCRIPTION ^

This module is an interface for the Budget API. It accepts following query parameters to make an request.

    my $res = $hpp->Budget();

$hpp above is an instance of WebService::Recruit::HotPepper.

METHODS ^

root

This returns the root element of the response.

    my $root = $res->root;

You can retrieve each element by the following accessors.

    $root->NumberOfResults;
    $root->APIVersion;
    $root->Budget->[0]->BudgetDesc;
    $root->Budget->[0]->BudgetCD;

xml

This returns the raw response context itself.

    print $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 ^

WebService::Recruit::HotPepper

AUTHOR ^

Toshimasa Ishibashi http://iandeth.dyndns.org/

This module is unofficial and released by the author in person.

THANKS TO ^

Yusuke Kawasaki http://www.kawa.net/

For creating/preparing all the base modules and stuff.

COPYRIGHT AND LICENSE ^

Copyright (c) 2007 Toshimasa Ishibashi. All rights reserved. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

syntax highlighting: