1.0.11 • Published 4 years ago
@mojoio/qonto v1.0.11
@mojoio/qonto
an unofficial api package for the qonto.com API
Availabililty and Links
Status for master
Usage
Use TypeScript for best in class intellisense
// this is the original test file, which is automatically updated
// test setup
import { expect, tap } from '@pushrocks/tapbundle';
import { Qenv } from '@pushrocks/qenv';
const testQenv = new Qenv('./', './.nogit');
// here it gets interesting about how to use the lib
import * as qonto from '../ts/index';
let testQontoAccount: qonto.QontoAccount;
tap.test('should create a qonto account', async () => {
testQontoAccount = new qonto.QontoAccount({
qontoUser: testQenv.getEnvVarOnDemand('QONTO_USER'),
qontoToken: testQenv.getEnvVarOnDemand('QONTO_TOKEN')
});
expect(testQontoAccount).to.be.instanceOf(qonto.QontoAccount);
});
tap.test('should get qonto bank account in a qonto account', async () => {
const bankAccounts = await testQontoAccount.getBankAccounts();
const bankAccount = bankAccounts[0]
expect(bankAccount).to.be.instanceOf(qonto.QontoBankAccount);
});
tap.test('should get transactions from a qonto bank account', async () => {
const bankAccounts = await testQontoAccount.getBankAccounts();
const bankAccount = bankAccounts[0]
expect(bankAccount).to.be.instanceOf(qonto.QontoBankAccount);
const transactions = await bankAccount.getTransactions();
});
tap.start();
Contribution
We are always happy for code contributions. If you are not the code contributing type that is ok. Still, maintaining Open Source repositories takes considerable time and thought. If you like the quality of what we do and our modules are useful to you we would appreciate a little monthly contribution: You can contribute one time or contribute monthly. :)
For further information read the linked docs at the top of this readme.
MIT licensed | © Lossless GmbH | By using this npm module you agree to our privacy policy