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

https://github.com/banphlet/mazzuma

Small client library for interacting with mazzuma api
https://github.com/banphlet/mazzuma

axios library mazzuma module nodejs

Last synced: 5 months ago
JSON representation

Small client library for interacting with mazzuma api

Awesome Lists containing this project

README

          

## Mazzuma

A small wrapper around mazzuma api

### Installation

```
npm i mazzuma
```

### Usage

```javascript
const mazzuma = require('mazzuma')

const client = mazzuma(apiKey)
```

#### Money Money Payment

Check docs for payload https://mazzuma.com/developer/

```javascript
await client.mobileMoneyPayment({
price: 1,
network: 'mtn',
recipient_number: '026xxxxxxx',
sender: '024xxxxxxx',
option: 'rmta',
apikey: '',
orderID: ''
})
```

#### Send Mazzuma Tokens

Check docs for payload https://mazzuma.com/developer/

```javascript
await client.sendTokens({
price: 1,
recipient: '026xxxxxxx',
sender: '024xxxxxxx'
})
```

#### Receive Mazzuma Tokens

Check docs for payload https://mazzuma.com/developer/

```javascript
await client.receiveTokens({
option: 1,
callback_url: 'https://testurl/callback',
sender: '024xxxxxxx'
})
```

#### Checking Transaction Status

Check docs for payload https://mazzuma.com/developer/

```javascript
await client.checkTransactionStatus(hash)
```

#### Get Account Balance

Check docs for payload https://mazzuma.com/developer/

```javascript
await client.checkAccountBalance()
```

#### Validate Account

Check docs for payload https://mazzuma.com/developer/

```javascript
await client.validateAccount(username)
```

HAPPY HACKING ❤