Skip to content

Commit 868ce8f

Browse files
rsashanktimabbott
authored andcommitted
api: Add get_stream_email_address().
1 parent 20ccb22 commit 868ce8f

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

Diff for: zulip/zulip/__init__.py

+9
Original file line numberDiff line numberDiff line change
@@ -1488,6 +1488,15 @@ def get_stream_topics(self, stream_id: int) -> Dict[str, Any]:
14881488
"""
14891489
return self.call_endpoint(url=f"users/me/{stream_id}/topics", method="GET")
14901490

1491+
def get_stream_email_address(self, stream_id: int) -> Dict[str, Any]:
1492+
"""
1493+
Example usage:
1494+
1495+
>>> client.get_stream_email_address(stream_id=1)
1496+
{'result': 'success', 'msg': '', 'email': '[email protected]'}
1497+
"""
1498+
return self.call_endpoint(url=f"streams/{stream_id}/email_address", method="GET")
1499+
14911500
def get_user_groups(self) -> Dict[str, Any]:
14921501
"""
14931502
Example usage:

0 commit comments

Comments
 (0)