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-
HEAD /surveys -
OPTIONS /surveys-- API not available -
GET /surveys -
POST /surveys
-
/surveys/{id}-
HEAD /surveys/{id} -
OPTIONS /surveys/{id} -
GET /surveys/{id} -
PATCH /surveys/{id} -
PUT /surveys/{id} -
DELETE /surveys/{id}
-
/surveys/{id}/details-
GET /surveys/{id}/details
-
/survey_categories-
HEAD /survey_categories -
OPTIONS /survey_categories-- API not available -
GET /survey_categories
-
/survey_templates-
HEAD /survey_templates -
OPTIONS /survey_templates-- API not available -
GET /survey_templates
-
/survey_languages-
HEAD /survey_languages -
OPTIONS /survey_languages-- API not available -
GET /survey_languages
-
/surveys/{id}/pages-
HEAD /surveys/{id}/pages -
OPTIONS /surveys/{id}/pages-- API not available -
GET /surveys/{id}/pages -
POST /surveys/{id}/pages
-
/surveys/{id}/pages/{id}-
HEAD /surveys/{id}/pages/{id} -
OPTIONS /surveys/{id}/pages/{id} -
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-
HEAD /surveys/{id}/pages/{id}/questions -
OPTIONS /surveys/{id}/pages/{id}/questions-- API not available -
GET /surveys/{id}/pages/{id}/questions -
POST /surveys/{id}/pages/{id}/questions
-
/surveys/{id}/pages/{id}/questions/{id}-
HEAD /surveys/{id}/pages/{id}/questions/{id} -
OPTIONS /surveys/{id}/pages/{id}/questions/{id} -
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%)
/surveys/{id}/responses-
GET /surveys/{id}/responses
-
/collectors/{id}/responses-
HEAD /collectors/{id}/responses -
OPTIONS /collectors/{id}/responses -
GET /collectors/{id}/responses -
POST /collectors/{id}/responses -
DELETE /collectors/{id}/responses
-
/surveys/{id}/responses/bulk-
GET /surveys/{id}/responses/bulk
-
/collectors/{id}/responses/bulk-
GET /collectors/{id}/responses/bulk
-
/surveys/{id}/responses/{id}-
HEAD /surveys/{id}/responses/{id} -
OPTIONS /surveys/{id}/responses/{id} -
GET /surveys/{id}/responses/{id} -
PATCH /surveys/{id}/responses/{id} -
PUT /surveys/{id}/responses/{id} -
DELETE /surveys/{id}/responses/{id}
-
/surveys/{id}/responses/{id}/details-
GET /surveys/{id}/responses/{id}/details
-
/collectors/{id}/responses/{id}/details-
GET /collectors/{id}/responses/{id}/details
-