Skip to content
This repository has been archived by the owner on Jan 19, 2021. It is now read-only.

node.js API client for Teamleader

License

Notifications You must be signed in to change notification settings

tijsverkoyen/node-teamleader

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Resources

License

Stars

Watchers

Forks

Packages

No packages published