An open API service indexing awesome lists of open source software.

https://github.com/kritzware/monzo

💳 Unofficial Client Library for Monzo API
https://github.com/kritzware/monzo

api client-library monzo node typescript

Last synced: 2 months ago
JSON representation

💳 Unofficial Client Library for Monzo API

Awesome Lists containing this project

README

        

# monzo
⚠️ *work in progress*

Unofficial Client Library for Monzo API

```typescript
import Monzo from "monzo"

const monzo = new Monzo({ accessToken: "123" })

// Get account
const [account] = await monzo.accounts.list()

// Get account balance
const balance = await monzo.balance.get(account.id)
console.log(balance)
// 420

// List pots
const pots = await monzo.pots.list()
for (const pot of pots) {
console.log({ name: pot.name, balance: pot.balance })
// { name: "Savings", balance: 120 }
}
```