def add(self, user_properties): """Create a new user.""" usr = User(self.context) qry = CreateEntityQuery(self, user_properties, usr) self.context.add_query(qry) self.add_child(usr) return usr
def me(self): """The Me endpoint is provided as a shortcut for specifying the current user""" return User(self, ResourcePath("me"))
def me(self): """The Me endpoint is provided as a shortcut for specifying the current user by SMTP address.""" return User(self, ResourcePath("me", None))
def __getitem__(self, key): if type(key) == int: return self._data[key] return User(self.context, ResourcePath(key, self.resource_path))