0.0
No release in over 3 years
Low commit activity in last 3 years
Gem for Monobank API
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.17
>= 0
~> 10.0
~> 3.0
~> 0.55.0

Runtime

~> 1.0, >= 1.0.3
 Project Readme

Monobank Ruby

Ruby gem for Monobank API

Installation

Add this line to your application's Gemfile:

gem 'monobank-ruby'

And then execute:

$ bundle

Or install it yourself as:

$ gem install monobank-ruby

Usage

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 code of conduct.

License

The gem is available as open source under the terms of the MIT License.

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.