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)
def user(self, username): """Fetch a User by username.""" return models.User(self, {'username': username})