servicetitan
Version:
Node wrapper for the ServiceTitan API
37 lines (28 loc) • 905 B
Markdown
# node-servicetitan
[](https://travis-ci.org/maxmclau/node-servicetitan) [](https://badge.fury.io/js/servicetitan) [](https://github.com/maxmclau/node-servicetitan/blob/master/package.json)
Node Servicetitan is a node.js wrapper for the [go.servicetitan.com](https://servicetitan.com/) api.
#### Installation
```bash
npm install servicetitan
```
#### Usage
```js
'use strict';
var st = require('servicetitan')({
key : '00000000-0000-0000-0000-000000000000'
});
st
.getCustomers({
id : 0
})
.then(function(res) {
console.log(res);
})
.catch(function(err) {
console.log('Error');
});
```
#### Test
```bash
API_KEY="00000000-0000-0000-0000-000000000000" npm test
```