tijsverkoyen / node-teamleader

node.js API client for Teamleader

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.

About

node.js API client for Teamleader

License:MIT License


Languages

Language:JavaScript 100.0%