0.0.1 • Published 8 years ago

iterate-sdk v0.0.1

Weekly downloads
2
License
ASL
Repository
github
Last release
8 years ago

iterate-sdk

Build Status

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: 'matt@example.com'}); // send survey to matt@example.com
  mySurvey.send(); // send to all prospective survey recipients

Contributing

Contributors welcome. Say hi!

TODO

  • More endpoints
  • Better docs
0.0.1

8 years ago