0.1.7 • Published 6 years ago
scooba v0.1.7
###bring it inimport scooba from 'scooba';
###send it datascooba.submitTicket({ testCode: '1234' });
orscooba.submitTicket({ testCode: 'asdva2', note:"I cannot finish writing this sentance" });
you can also send 'note' in the body of the request and it will display in the admin panel as well
####promises are supported, not callbacks
scooba.submitTicket({ testCode: 1234 }).then(function(data) {
console.log("returned this data", data);
});
###returns{"ticketNumber":"ae-3412"}
generates a ticket number and returns it to you