1.0.1 • Published 5 years ago
teamleader-offix v1.0.1
Teamleader for Node.js
An client library for the Teamleader API.
var Teamleader = require('teamleader');
var client = new Teamleader({
group: '',
api_secret: '',
});
client.post(
'getContacts',
{
amount: 100,
pageno: 1
},
function(error, contacts, response){
if (!error) {
console.log(contacts);
}
}
);
Installation
npm install teamleader
Usage
You need to pass the page for the endpoint and the parameters. The endpoint can be found in the documentation
and you can remove the url and the /api/
, and .php
part.
So if the endpoint is https://www.teamleader.be/api/helloWorld.php
you should pass helloWorld
.