GrooveHQ API (groove-api)
Node.js wrapper for Groove API (https://www.groovehq.com/docs)
Installation
npm install groove-api --save
Usage
var grooveClass = require('groove-api');
var groove = new grooveClass(YOUR_GROOVEHQ_ACCESS_TOKEN_HERE);
Supports promises
groove.getTickets(null, "customer_email@somedomain.com")
.then(function (ticketsresult) {
...
},
function(err)
{
...
});
Also supports callbacks
groove.getMessages(someTicketId, 1, 50, function(err, messagesresult) {
if (err) {
..
}
...
});
Create a ticket example
groove.createTicket(ticketBodyText, "customer_email@somedomain.com", "our_admin_email@ourdomain.com")
.then(function (result) {
..
},function(err){
..
});
Currently the following methods are supported
- GetTickets
- GetTicket
- GetMessages
- CreateTicket
- CreateMessage
See https://www.groovehq.com/docs for more info about each method.
Future work
- Add all available API methods
by silveridea