Пример #1
0
 def identity(self):
     """Return a User object representing the OAuth-authorized user."""
     resp = self._get(self._base_url + '/oauth/identity')
     return models.User(self, resp)
Пример #2
0
 def user(self, username):
     """Fetch a User by username."""
     return models.User(self, {'username': username})