<img src=“https://travis-ci.org/14113/fio_api.svg?branch=master” alt=“Build Status” /> <img src=“https://codeclimate.com/badge.png” />
This project rocks and uses MIT-LICENSE.
This gem is a wrapper for Fio bank API.
gem 'fio_api'
FioAPI.token = "8JSKJ823DN86YRH87UIRUI2363ND5xcr3"
list = FioAPI::List.new # Create new listing request list.by_date_range(Date.new(2012,11,05), Date.new(2012,12,26)) # Specify listing condition and fetch request list.response # Return deserialized response
list = FioAPI::List.new list.from_last_fetch list.response
list = FioAPI::List.new list.by_listing_id_and_year(1, 2012) list.response
list = FioAPI::List.new list.set_last_fetch_id("SHXG738377834") list.response
list = FioAPI::List.new list.set_last_fetch_date(Date.new(2012,11,05)) list.response
payment = FioAPI::Payments::Domestic.new(:account_from, :currency, :amount, :account_to, :bank_code, :ks, :vs, :ss, :date, :message_for_recipient, :comment) service = FioAPI::Payment.new [payment] # Pass one payment or array of payments service.import # Call API service.response # Return deserialized response with status code etc. service.success? # => true / false
-
Check out the latest master to make sure the feature hasn’t been implemented or the bug hasn’t been fixed yet.
-
Check out the issue tracker to make sure someone already hasn’t requested it and/or contributed it.
-
Fork the project.
-
Start a feature/bugfix branch.
-
Commit and push until you are happy with your contribution.
-
Make sure to add tests for it. This is important so I don’t break it in a future version unintentionally.
-
Please try not to mess with the Rakefile, version, or history. If you want to have your own version, or is otherwise necessary, that is fine, but please isolate to its own commit so I can cherry-pick around it.