-
-
Notifications
You must be signed in to change notification settings - Fork 364
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
api: Add get_stream_email_address().
- Loading branch information
Showing
1 changed file
with
9 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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: | ||
|