Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Thin request-like interface for easy access to the Debitoor REST API from node.js.
JavaScript
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
.gitignore
example.js
index.js
package.json
readme.md

readme.md

debitoor npm version Dependency Status

This small module wraps request in order to provide easy access to the Debitoor REST API.

Usage

Install via npm:

npm install debitoor

Use it like you would use request. The main difference is that you only have to specify relative URLs and that authentication is handled for you. Just provide a valid access token and you're ready to go:

var access_token = 'your-token';

var debitoor = require('debitoor')(access_token);

debitoor('/customers/v1', function (error, response, body) {
    console.log(body);
});

Getting Access

In order to get access to the API you first need to register an app. With that in place you need to run your users through an OAuth2 flow in order to obtain an access_token that you can use to interact with their data.

API Documentation

The general Debitoor REST API documenation can be found here: https://github.com/e-conomic/debitoor-api

Something went wrong with that request. Please try again.