Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/bezrukavyi/monobank-ruby
https://github.com/bezrukavyi/monobank-ruby
Last synced: 3 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/bezrukavyi/monobank-ruby
- Owner: bezrukavyi
- License: mit
- Created: 2019-06-25T08:53:30.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2022-10-06T05:47:45.000Z (about 2 years ago)
- Last Synced: 2024-04-25T10:20:26.925Z (7 months ago)
- Language: Ruby
- Size: 12.7 KB
- Stars: 8
- Watchers: 1
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
# Monobank Ruby
Ruby gem for [Monobank API](https://api.monobank.ua/docs)
## Installation
Add this line to your application's Gemfile:
```ruby
gem 'monobank-ruby'
```And then execute:
$ bundle
Or install it yourself as:
$ gem install monobank-ruby
## Usage
```ruby
require 'monobank-ruby'token = 'YOUR_TOKEN'
info = Monobank::ClientInfo.show(token) # {"name"=>"Безрукавий Ярослав", "accounts"=>[{"id"=>"SOME_ID", "currencyCode"=>000, "cashbackType"=>"UAH", "balance"=>000, "creditLimit"=>000}]}
from = '1560588240' # 10.days.ago.to_i
info.accounts.first.statement(from: from, token: token) # [{"id"=>"SOME_IUD", "time"=>1561390362, "description"=>"TERMINAL8", "mcc"=>0000, "amount"=>000, "operation_amount"=>000, "currency_code"=>000, "commission_rate"=>0, "cashback_amount"=>000, "balance"=>000, "hold"=>true},
```## Contributing
Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/monobank-ruby. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
## License
The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
## Code of Conduct
Everyone interacting in the Monobank::Ruby project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/[USERNAME]/monobank-ruby/blob/master/CODE_OF_CONDUCT.md).