iterate-sdk
v0.0.1
Published
Unofficial JavaScript SDK for IterateHQ.com's API. Send surveys and request survey data without opening your web browser.
Downloads
3
Readme
iterate-sdk
iteratehq sdk
Unofficial JavaScript SDK for IterateHQ.com's API. Send surveys and request survey data without opening your web browser.
Prerequisites
You'll need an access token from https://iteratehq.com.
Installing
npm install iterate-sdk
Usage
const iterate = (require('iterate-sdk')).createClient({
access_token: 'MY-ACCESS-TOKEN'
});
const survey = new iterate.Survey();
survey.getAll().then((response) => console.log('all surveys', response);
const mySurvey = new iterate.Survey({id: 'favorite-survey'});
mySurvey.send({email: '[email protected]'}); // send survey to [email protected]
mySurvey.send(); // send to all prospective survey recipients
Contributing
Contributors welcome. Say hi!
TODO
- More endpoints
- Better docs