Skip to content

Commit 6547533

Browse files
committed
Update people list method to include **query_params
1 parent 92445c1 commit 6547533

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

ciscosparkapi/api/people.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ def __init__(self, session):
137137
self._session = session
138138

139139
@generator_container
140-
def list(self, email=None, displayName=None, orgId=None, id=None, max=None):
140+
def list(self, email=None, displayName=None, orgId=None, id=None, max=None, **query_params):
141141
"""List people
142142
143143
This method supports Cisco Spark's implementation of RFC5988 Web
@@ -186,6 +186,9 @@ def list(self, email=None, displayName=None, orgId=None, id=None, max=None):
186186
params["orgId"] = orgId
187187
if max:
188188
params['max'] = max
189+
# Process query_param keyword arguments
190+
if query_params:
191+
params.update(query_params)
189192
# API request - get items
190193
items = self._session.get_items('people', params=params)
191194
# Yield Person objects created from the returned items JSON objects

0 commit comments

Comments
 (0)