Skip to content

Commit 228488e

Browse files
committed
list_subscriptions: Encoded list_subscriptions parameters.
Rectified the list_subscriptions api parameters to , take up default parameters rather than a dictionary . As discussed within zulip/zulip#16698
1 parent f2d80c6 commit 228488e

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

zulip/zulip/__init__.py

+4-2
Original file line numberDiff line numberDiff line change
@@ -1278,14 +1278,16 @@ def remove_alert_words(self, alert_words: List[str]) -> Dict[str, Any]:
12781278
}
12791279
)
12801280

1281-
def list_subscriptions(self, request: Optional[Dict[str, Any]] = None) -> Dict[str, Any]:
1281+
def list_subscriptions(self, include_subscribers: bool = False) -> Dict[str, Any]:
12821282
'''
12831283
See examples/list-subscriptions for example usage.
12841284
'''
12851285
return self.call_endpoint(
12861286
url='users/me/subscriptions',
12871287
method='GET',
1288-
request=request,
1288+
request={
1289+
'include_subscribers': include_subscribers
1290+
}
12891291
)
12901292

12911293
def add_subscriptions(self, streams: Iterable[Dict[str, Any]], **kwargs: Any) -> Dict[str, Any]:

0 commit comments

Comments
 (0)