survey-monkey

1.0.0 • Public • Published

SurvayMonkeyAPI

A NPM package for the SurveyMonkey API

Further information on the SurveyMonkey API and its features is available at https://developer.surveymonkey.com

Installation

Installing using npm (node package manager):

npm install survey-monkey

Usage

Information on how to use the SurveyMonkey APIs can be found below. Further information on the API methods available can be found at https://developer.surveymonkey.com. You can also find further information on how to obtain an OAuth2 access token in your SurveyMonkey account and much more on the SurveyMonkey API pages.

SurveyMonkey API

Example:

var SurveyMonkeyAPI = require('survey-monkey');
 
var accessToken = 'Your SurveyMonkey App Access Token';
 
try {
    var api = new SurveyMonkeyAPI(accessToken);
} catch (err) {
    console.log(err.message);
}
 
api.getSurveyList()
    .then(data => console.log(data))
    .catch(err => console.error(err))
 
api.getSurveyDetails(113260729)
    .then(data => console.log(data))
    .catch(err => console.error(err))

Methods:

  • getSurveyList(query)
  • getSurvey(surveyId)
  • getSurveyDetails(surveyId)
  • getSurveyCategories()
  • getSurveyTemplates()
  • getSurveyPages(surveyId)
  • getSurveyPage(surveyId, pageId)
  • getSurveyPageQuestions(surveyId, pageId, questionId)
  • getSurveyPageQuestion(surveyId, pageId)
  • getSurvayResponses(surveyId)
  • getSurvayResponse(surveyId, responseId)
  • getSurvayResponseDetails(surveyId, responseId)
  • getSurvayResponsesBulk(surveyId)
  • getCollectorResponses(collectorId)
  • getCollectorResponse(collectorId, responseId)
  • getCollectorResponseDetails(collectorId, responseId)
  • getCollectorResponsesBulk(collectorId)

License

survey-monkey is licensed under the MIT License. (See LICENSE)

Readme

Keywords

none

Package Sidebar

Install

npm i survey-monkey

Weekly Downloads

13

Version

1.0.0

License

MIT

Last publish

Collaborators

  • piotrovskyi