1.0.0 • Published 7 years ago

qonto v1.0.0

Weekly downloads
15
License
ISC
Repository
github
Last release
7 years ago

Qonto API Client

A simple client for Qonto's API written in Node JS (ES6) Official docs are found here;

Installation

To install simply use npm or clone repo:

npm install qonto

or clone repo and make link:

$> git clone git@github.com:bottomatik/qonto-api.git

Usage

Qonto's API is not very detailed yet, but this repository will be updated along with the API.

To init juste plug in your slug and secret like so:

const Qonto = require('qonto');

const QontoClient = new Qonto({
	slug: 'my slug',
	secret: 'my secret'
});

This enables you to create multiple clients for different accounts.

API

This client uses the same API as Qonto docs, and provides it as a Promise-based client. It uses fishingrod to perform requests, and returns a Promise with the exact (non-treated) response from Qonto.

Organization

QontoClient.organization().then(res => {
	console.log(res.response);
}).catch(e => {
	console.error(e);
});

Transactions

QontoClient.transactions('iban_for_transactions', [current_page=0], [per_page=100]).then(res => {
	console.log(res.response);
}).catch(e => {
	console.error(e);
});