FidorApi
Simple ruby client for the Fidor Bank REST-API: http://docs.fidor.de
Installation
Add this line to your application's Gemfile:
gem 'fidor_api'
And then execute:
$ bundle
Or install it yourself as:
$ gem install fidor_api
Usage
Examples:
- oAuth
todo
- Fetching data
token = FidorApi::Token.new(access_token: "f859032a6ca0a4abb2be0583b8347937")
client = FidorApi::Client.new(token: token)
user = client.current_user
# => FidorApi::User
transactions = client.transactions
# => FidorApi::Collection
transaction = transactions.first
# => FidorApi::Transaction
- Creating transfers
token = FidorApi::Token.new(access_token: "f859032a6ca0a4abb2be0583b8347937")
client = FidorApi::Client.new(token: token)
transfer = client.build_internal_transfer(
account_id: 875,
receiver: "[email protected]",
external_uid: "4279762F5",
subject: "Money for you",
amount: 1000
)
# => FidorApi::Transfer::Internal
transfer.save
# => true / or raise error
Development
After checking out the repo, run bin/setup to install dependencies. Then, run rake spec to run the tests. You can also run bin/console for an interactive prompt that will allow you to experiment.
To install this gem onto your local machine, run bundle exec rake install.
Contributing
Bug reports and pull requests are welcome on GitHub at https://github.com/klausmeyer/fidor_api.
License
The gem is available as open source under the terms of the MIT License.