Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

romkor/ex_monobank

Folders and files

NameName
Last commit message
Last commit date

Latest commit

History

26 Commits

Repository files navigation

ExMonobank

Unofficial Elixir wrapper for Monobank API

Functions

PublicAPI

bank_currency()

Example:

ExMonobank.PublicAPI.bank_currency()
{:ok,
 [
 %ExMonobank.CurrencyInfo{
 currency_code_a: 840,
 currency_code_b: 980,
 date: ~U[2020年01月30日 11:40:09Z],
 rate_buy: 24.761,
 rate_cross: nil,
 rate_sell: 25.0514
 },
 %ExMonobank.CurrencyInfo{
 currency_code_a: 978,
 currency_code_b: 980,
 date: ~U[2020年01月30日 13:00:05Z],
 rate_buy: 27.161,
 rate_cross: nil,
 rate_sell: 27.6098
 },
 %ExMonobank.CurrencyInfo{
 currency_code_a: 643,
 currency_code_b: 980,
 date: ~U[2020年01月30日 11:40:09Z],
 rate_buy: 0.363,
 rate_cross: nil,
 rate_sell: 0.398
 },
 # ...
 ]
}

PersonalAPI

client_info()

Example:

ExMonobank.PersonalAPI.client_info()

statement(from)

Example:

{:ok, from_date, 0} = DateTime.from_iso8601("2020-01-06T23:50:07Z")
ExMonobank.PersonalAPI.statement(from_date)

statement(account, from)

statement(account, from, to)

webhook(url)

Installation

The package can be installed by adding ex_monobank to your list of dependencies in mix.exs:

def deps do
 [
 {:ex_monobank, "~> 1.0.0"}
 ]
end

About

Elixir Monobank API (unofficial)

Topics

Resources

License

Stars

Watchers

Forks

Packages

Contributors

Languages

AltStyle によって変換されたページ (->オリジナル) /