Skip to content

Commit 166d7fe

Browse files
committed
adds a params call to survey listings, in case there is more than 1 page of surveys. Allows for pagination, etc.
1 parent fc4f47d commit 166d7fe

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

surveymonkey/client.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -194,6 +194,17 @@ def get_survey_lists(self):
194194
url = API_URL + endpoint
195195
return self._get(url)
196196

197+
def get_survey_lists_bulk(self, params=None):
198+
"""
199+
List all created surveys, allows for params to be added to the request, (eg. pagination).
200+
:param params: a dict of params to add to the request, possible values can be
201+
found at https://developer.surveymonkey.com/api/v3/#surveys
202+
:return:
203+
"""
204+
endpoint = "/surveys"
205+
url = API_URL + endpoint
206+
return self._get(url, params=params)
207+
197208
def get_specific_survey(self, survey_id):
198209
"""
199210
Returns a survey’s details.

0 commit comments

Comments
 (0)