0.01
No commit activity in last 3 years
No release in over 3 years
Mizuho Bank (Mizuho Direct) Ruby Interface
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

Runtime

active_support
>= 0
>= 0
>= 0
 Project Readme

mizuho_bank : みずほ銀行ウェブサイトのRuby Interface¶ ↑

インストール¶ ↑

gem install mizuho_bank

使い方 (こんな感じで)¶ ↑

# encoding: utf-8
require 'mizuho_bank'
require 'pit'

pit = Pit.get("MizuhoBank", :require => {
  "keiyaku_no" => "keiyaku_no",
  "password" => "password",
  "aikotoba1_question" => "aikotoba1_question",
  "aikotoba2_question" => "aikotoba2_question",
  "aikotoba3_question" => "aikotoba3_question",
  "aikotoba1_answer" => "aikotoba1_answer",
  "aikotoba2_answer" => "aikotoba2_answer",
  "aikotoba3_answer" => "aikotoba3_answer",
})

aikotoba_dict = {
  pit['aikotoba1_question'] => pit['aikotoba1_answer'],
  pit['aikotoba2_question'] => pit['aikotoba2_answer'],
  pit['aikotoba3_question'] => pit['aikotoba3_answer']
}

MizuhoBank.new(pit['keiyaku_no'].to_s, pit['password'].to_s, aikotoba_dict){ |bank|
  p bank.info.main_account.money
}

用例集¶ ↑

  1. 口座残高取得したいとき

bank.info.main_account.money
  1. 最近の取引履歴を配列で取得したいとき

bank.info.main_account.cache_flows
  1. 口座番号とか種別しりたいとき

bank.info.main_account.number
bank.info.main_account.type

既知の問題¶ ↑

まだ画像認証に対応してない。画像認証は秘密の質問に失敗しまくってるとやらなきゃいけなくなる