From a1012774decab78a1b14f7b70d9cf8e0446d4705 Mon Sep 17 00:00:00 2001 From: "Juan M. Uys" Date: Thu, 5 Jul 2018 21:30:37 +0100 Subject: [PATCH] get bulk responses by collector --- lib/surveymonkey/SurveyMonkeyAPI_v3.js | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/lib/surveymonkey/SurveyMonkeyAPI_v3.js b/lib/surveymonkey/SurveyMonkeyAPI_v3.js index dabb711..bfd54e5 100644 --- a/lib/surveymonkey/SurveyMonkeyAPI_v3.js +++ b/lib/surveymonkey/SurveyMonkeyAPI_v3.js @@ -93,14 +93,24 @@ SurveyMonkeyAPI_v3.prototype.execute = function (type, resource, method, params, /** * Retrieves a paged list of respondents for a given survey and optionally collector bulk - * - * + * + * */ SurveyMonkeyAPI_v3.prototype.getRespondentListBulk = function (params, callback) { if (typeof params === 'function') callback = params, params = {}; this.execute('GET', 'surveys', 'responses_bulk', params, callback); }; +/** + * Retrieves a paged list of respondents for a given collector and optionally collector bulk + * + * + */ +SurveyMonkeyAPI_v3.prototype.getRespondentListByCollectorBulk = function (params, callback) { + if (typeof params === 'function') callback = params, params = {}; + this.execute('GET', 'collectors', 'responses_bulk', params, callback); +}; + /** * Retrieves a paged list of respondents for a given survey and optionally collector *