surveymonkey-typescript-sdk
TypeScript icon, indicating that this package has built-in type declarations

0.8.5 • Public • Published

SurveyMonkey TypeScript SDK

Usage

import {SurveymonkeyConfig, SurveymonkeyApi} from 'surveymonkey-typescript-sdk';

const token: string = 'YOUR_SURVEYMONKEY_TOKEN';
const config: SurveymonkeyConfig = {token};

const api = new SurveymonkeyApi(config);

async function main(): Promise<void> {
  const {data} = await api.survey.getSurveyList();
  for (const survey of data) {
    console.log(survey);
  }
  process.exit(0);
}

main();

Endpoints coverage

  • Overall coverage: 26/56 (46%)

Surveys, Pages, and Questions

Coverage: 22/40 (55%)

  • /surveys
    • [x] HEAD /surveys
    • [ ] OPTIONS /surveys -- API not available
    • [x] GET /surveys
    • [ ] POST /surveys
  • /surveys/{id}
    • [x] HEAD /surveys/{id}
    • [x] OPTIONS /surveys/{id}
    • [x] GET /surveys/{id}
    • [ ] PATCH /surveys/{id}
    • [ ] PUT /surveys/{id}
    • [ ] DELETE /surveys/{id}
  • /surveys/{id}/details
    • [x] GET /surveys/{id}/details
  • /survey_categories
    • [x] HEAD /survey_categories
    • [ ] OPTIONS /survey_categories -- API not available
    • [x] GET /survey_categories
  • /survey_templates
    • [x] HEAD /survey_templates
    • [ ] OPTIONS /survey_templates -- API not available
    • [x] GET /survey_templates
  • /survey_languages
    • [x] HEAD /survey_languages
    • [ ] OPTIONS /survey_languages -- API not available
    • [x] GET /survey_languages
  • /surveys/{id}/pages
    • [x] HEAD /surveys/{id}/pages
    • [ ] OPTIONS /surveys/{id}/pages -- API not available
    • [x] GET /surveys/{id}/pages
    • [ ] POST /surveys/{id}/pages
  • /surveys/{id}/pages/{id}
    • [x] HEAD /surveys/{id}/pages/{id}
    • [x] OPTIONS /surveys/{id}/pages/{id}
    • [x] GET /surveys/{id}/pages/{id}
    • [ ] PATCH /surveys/{id}/pages/{id}
    • [ ] PUT /surveys/{id}/pages/{id}
    • [ ] DELETE /surveys/{id}/pages/{id}
  • /surveys/{id}/pages/{id}/questions
    • [x] HEAD /surveys/{id}/pages/{id}/questions
    • [ ] OPTIONS /surveys/{id}/pages/{id}/questions -- API not available
    • [x] GET /surveys/{id}/pages/{id}/questions
    • [ ] POST /surveys/{id}/pages/{id}/questions
  • /surveys/{id}/pages/{id}/questions/{id}
    • [x] HEAD /surveys/{id}/pages/{id}/questions/{id}
    • [x] OPTIONS /surveys/{id}/pages/{id}/questions/{id}
    • [x] GET /surveys/{id}/pages/{id}/questions/{id}
    • [ ] PATCH /surveys/{id}/pages/{id}/questions/{id}
    • [ ] PUT /surveys/{id}/pages/{id}/questions/{id}
    • [ ] DELETE /surveys/{id}/pages/{id}/questions/{id}

Survey Responses

Coverage: 4/16 (25%)

Package Sidebar

Install

npm i surveymonkey-typescript-sdk

Weekly Downloads

39

Version

0.8.5

License

MIT

Unpacked Size

61.9 kB

Total Files

45

Last publish

Collaborators

  • tkqubo