We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1d1e93d commit 2cf4978Copy full SHA for 2cf4978
zulip/zulip/__init__.py
@@ -1056,6 +1056,21 @@ def delete_stream(self, stream_id):
1056
method='DELETE',
1057
)
1058
1059
+ def get_user_by_id(self, user_id, request=None):
1060
+ # type: (int, Optional[Dict[str, Any]]) -> Dict[str, Any]
1061
+
1062
+ '''
1063
+ Example usage:
1064
1065
+ >>> client.get_user_by_id(8, {'include_custom_profile_fields': True})
1066
+ {'result': 'success', 'msg': '', 'user': [{...}, {...}]}
1067
1068
+ return self.call_endpoint(
1069
+ url='users/{}'.format(user_id),
1070
+ method='GET',
1071
+ request=request,
1072
+ )
1073
1074
def get_members(self, request=None):
1075
# type: (Optional[Dict[str, Any]]) -> Dict[str, Any]
1076
'''
0 commit comments