0.0.3 • Published 12 months ago

moneybird-axios v0.0.3

Weekly downloads
3
License
MIT
Repository
github
Last release
12 months ago

moneybird-axios

This package provides a TypeScript/JavaScript client for the Moneybird API and utilizes axios.

It can be used in both TypeScript and JavaScript. In TypeScript, you can benefit from things like type hints.

Installation

Navigate to the folder of your consuming project and run the following command to install the package:

npm install moneybird-axios --save

Usage

import { AdministrationsApi, Configuration } from 'moneybird-axios';

const administrationsApi = new AdministrationsApi(<Configuration>{
    accessToken: 'YOUR_TOKEN'
});

administrationsApi.getAdministrations().then(response => {
    const administrations = response.data;
    administrations.forEach(administration => {
        console.log(`Found administration: ${administration.name}`);
    });
}).catch(e => {
    console.error(`Error: ${e}`);
});

Building

To build and compile the TypeScript sources to JavaScript, use:

npm install
npm run build