Node.js client for SupportPal help desk.
npm install supportpal
- Check SupportPal API documentation for more details.
To use supportpal first you need to instantiate it:
var support = new Supportpal({ 'hostname': process.env.HOST, 'port': 443, 'hash': process.env.HASH });var opts = {
'subject': 'subject testtttt',
'text': 'text testtttttt',
'status': 1,
'priority': 1,
'department': 1,
'user_email': 'petermdias@gmail.com',
'user_firstname': 'Pedro',
'user_lastname': 'Dias'
};
support.ticket.create(opts, function(err, data) {
console.log(err)
console.log(data)
});- Tests are implemented using
mochaandchai. Run them withnpm test.
Check the examples folder for more specific use cases examples.
Pedro Dias - @pedromdias
Licensed under the Apache license, version 2.0 (the "license"); You may not use this file except in compliance with the license. You may obtain a copy of the license at:
http://www.apache.org/licenses/LICENSE-2.0.html
Unless required by applicable law or agreed to in writing, software distributed under the license is distributed on an "as is" basis, without warranties or conditions of any kind, either express or implied. See the license for the specific language governing permissions and limitations under the license.