Skip to content

Commit 0ef8e2e

Browse files
committed
Added keyword-args to functions that accept query params.
1 parent b07df19 commit 0ef8e2e

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

dynatademand/api.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -138,23 +138,23 @@ def logout(self):
138138
))
139139
return logout_response.json()
140140

141-
def get_attributes(self, country_code, language_code):
141+
def get_attributes(self, country_code, language_code, **kwargs):
142142
self.validator.validate_request(
143143
'get_attributes',
144144
path_data={
145145
'countryCode': '{}'.format(country_code),
146146
'languageCode': '{}'.format(language_code)
147147
},
148-
query_params={},
148+
query_params=kwargs,
149149
request_body={},
150150
)
151151
return self._api_get('/attributes/{}/{}'.format(country_code, language_code))
152152

153-
def get_countries(self):
153+
def get_countries(self, **kwargs):
154154
self.validator.validate_request(
155155
'get_countries',
156156
path_data={},
157-
query_params={},
157+
query_params=kwargs,
158158
request_body={},
159159
)
160160
return self._api_get('/countries')
@@ -311,11 +311,11 @@ def get_feasibility(self, project_id):
311311
)
312312
return self._api_get('/projects/{}/feasibility'.format(project_id))
313313

314-
def get_survey_topics(self):
314+
def get_survey_topics(self, **kwargs):
315315
self.validator.validate_request(
316316
'get_survey_topics',
317317
path_data={},
318-
query_params={},
318+
query_params=kwargs,
319319
request_body={},
320320
)
321321
return self._api_get('/categories/surveyTopics')

0 commit comments

Comments
 (0)