0.1.1 • Published 8 years ago

node-ticksy v0.1.1

Weekly downloads
2
License
MIT
Repository
github
Last release
8 years ago

Ticksy API Wrapper for Node

This package in development

Build Status

Install

npm install node-ticksy

Getting started

Firstly, you need to get your domain and key. Please follow the instructions on the Getting Started page to obtain them.

Code examples

var Ticksy = require('node-ticksy');

var myTicksy = new Ticksy('my-domain', 'my-key');

// getting open tickets
myTicksy.getOpenTickets().then(function(data) {
    console.log(data);
}, function(error) {
    // handle error
});

// getting closed tickets
myTicksy.getClosedTickets().then(function(data) {
    console.log(data);
}, function(error) {
    // handle error
});

// getting specific ticket by id
myTicksy.getTicket(id).then(function(data) {
    console.log(data);
}, function(error) {
    // handle error
});

// getting comments for specific ticket
myTicksy.getTicketComments(id).then(function(data) {
    console.log(data);
}, function(error) {
    // handle error
});

// getting tickets assigned to you
myTicksy.getMyTickets().then(function(data) {
    console.log(data);
}, function(error) {
    // handle error
});

For more information about Ticksy API please see Developer API Documentation.

License

Released under MIT license.

0.1.1

8 years ago

0.1.0

8 years ago