From e2c368a86215012702d38549a52e7f1a2c7c676a Mon Sep 17 00:00:00 2001 From: Marek Marecki Date: Sun, 23 Apr 2017 16:18:30 +0200 Subject: [PATCH] Access method for getting id of a user --- diaspy/people.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/diaspy/people.py b/diaspy/people.py index 7ebf2a3..a37c82c 100644 --- a/diaspy/people.py +++ b/diaspy/people.py @@ -87,6 +87,9 @@ class User(): def guid(self): return self.data.get('guid', '') + def id(self): + return self.data['id'] + def _fetchstream(self): self.stream = Outer(self._connection, guid=self['guid']) -- 2.25.1