A Node.js wrapper around Sift API written in ES6/7, and compiled with Babel.
npm install siftapi --save
(Work-in-progress, package not uploaded yet)
ES6/7:
import { SiftAPI } from 'siftapi';
siftapi = new SiftAPI('<API_KEY>', '<API_SECRET>');
ES5:
var SiftAPI = require('siftapi').default;
let siftapi = new SiftAPI('<API_KEY>', '<API_SECRET>');
To see more sample usage, either refer to the [docs](https://github.com/agent8 /sift-node-sdk/blob/master/docs/API.md) or see the test specs.
Rename sensitive.js.example
to sensitive.js
and include your API_KEY
and
API_SECRET
.
Rename test-config.js.example
to test-config.js
and include your email
account name and refresh token for the test suite to work.
npm install
gulp watch
The test suite will be run automatically when a write action is performed on the code.
Check out more at the CONTRIBUTING guide.
To run the test suite only:
gulp test
You can find the docs here