Finance::Bank::JP::Mizuho
my $mizuho = Finance::Bank::JP::Mizuho-new( consumer_id => '123455678', password => 'p45sW0rD', questions => { '母親の誕生日はいつですか(例:5月14日)' => '10月1日', # have to use 2byte digits, sucks '最も年齢の近い兄弟姉妹の誕生日はいつですか(例:2月10日)' => '12月2日', '応援しているスポーツチームの名前は何ですか' => '阪神タイガース', }, ); my $accounts = $mizuho->accounts; my $ofx = $mizuho->get_ofx( $mizuho->accounts->[0], $mizuho->CONTINUATION_FROM_LAST, );
Perl interface to access your Mizuho Direct account.
Value for "get_ofx"
Creates a new instance.
%config keys:
%config
Consumer id of Mizuho Direct ( お客さま番号 )
Password for your consumer_id
Hash reference paired with: Key as Question, Value as Answer
returns array of Finance::Bank::JP::Mizuho::Account
returns an instance of Finance::Bank::JP::Mizuho::Account
$account_or_number: an instance of Finance::Bank::JP::Mizuho::Account OR bank account number
$account_or_number
$term :
$term
returns list of hash references, parsed by Finance::OFX::Parse::Simple
arguments are same as "get_ofx".
returns OFX content as scalar
returns random host, provided by Mizuho Direct web service.
returns this instance has logged in
returns logged in successfully.
calling this method is not neccesary.
if you leave the process without calling this method, the account will be locked for about 10 minutes, and you will not able to access the web service.
To test this module with real bank data,
Type on the shell:
$ ppit set web.ib.mizuhobank.co.jp
$EDITOR launches, then set your account information using Config::Pit like the bellow.
---- consumer_id: '123455678' password: 'p45sW0rD' questions: '母親の誕生日はいつですか(例:5月14日)' : '10月1日' '最も年齢の近い兄弟姉妹の誕生日はいつですか(例:2月10日)' : '12月2日' '応援しているスポーツチームの名前は何ですか' : '阪神タイガース'
set environment variable MIZUHO_TEST_CONFIG, instead of web.ib.mizuhobank.co.jp.
MIZUHO_TEST_CONFIG
$ export MIZUHO_TEST_CONFIG=just_testing_mizuho $ ppit set just_testing_mizuho
Finance::OFX::Parse::Simple
Atsushi Nagase <ngs@cpan.org>
Copyright (C) 2011 Atsushi Nagase <ngs@cpan.org>
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
To install Finance::Bank::JP::Mizuho, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Finance::Bank::JP::Mizuho
CPAN shell
perl -MCPAN -e shell install Finance::Bank::JP::Mizuho
For more information on module installation, please visit the detailed CPAN module installation guide.