0.2.1 • Published 10 years ago

tickspot-api v0.2.1

Weekly downloads
3
License
MIT
Repository
github
Last release
10 years ago

tickspot-api

A Node module wrapping the Tickspot API.

Installation

Usage

All calls to Tickspot's API are made over HTTPS.

var Tickspot = require('tickspot-api');

var ts = new Tickspot('yourcompany', 'your@email', 'yourpassword');

Every method can use either the Node.js callback pattern, and/or use the promise returned by the method. The next two examples are equivalent.

ts.recentTasks(function (error, tasks) {
    if (!error) {
        console.log(tasks); // Print the array of recent tasks
    }
});
ts.recentTasks().then(function (tasks) {
    console.log(tasks); // Print the array of recent tasks
});

Methods

There is an equivalent method for every endpoint listed at the Tickspot API.