Skip to content

Commit

Permalink
api: Add get_stream_email_address().
Browse files Browse the repository at this point in the history
  • Loading branch information
rsashank authored and timabbott committed Jun 16, 2024
1 parent 20ccb22 commit 868ce8f
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions zulip/zulip/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -1488,6 +1488,15 @@ def get_stream_topics(self, stream_id: int) -> Dict[str, Any]:
"""
return self.call_endpoint(url=f"users/me/{stream_id}/topics", method="GET")

def get_stream_email_address(self, stream_id: int) -> Dict[str, Any]:
"""
Example usage:
>>> client.get_stream_email_address(stream_id=1)
{'result': 'success', 'msg': '', 'email': '[email protected]'}
"""
return self.call_endpoint(url=f"streams/{stream_id}/email_address", method="GET")

def get_user_groups(self) -> Dict[str, Any]:
"""
Example usage:
Expand Down

0 comments on commit 868ce8f

Please sign in to comment.