1.0.1 • Published 4 years ago

supportpal v1.0.1

Weekly downloads
1
License
Apache-2.0
Repository
github
Last release
4 years ago

node-supportpal

Node.js client for SupportPal help desk.

Installation

npm install supportpal

Usage

Getting started

To use supportpal first you need to instantiate it:

var support = new Supportpal({ 'hostname': process.env.HOST, 'port': 443, 'hash': process.env.HASH });

Creating a ticket

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

  • Tests are implemented using mocha and chai. Run them with npm test.

Examples

Check the examples folder for more specific use cases examples.

License

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.

1.0.1

4 years ago

1.0.0

4 years ago