iterate-sdk

0.0.1 • Public • Published

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

Readme

Keywords

none

Package Sidebar

Install

npm i iterate-sdk

Weekly Downloads

1

Version

0.0.1

License

ASL

Last publish

Collaborators

  • mjk