def _data(self): response = self._vk.api.photos.getById( photos=self.full_id, extended=True ) try: return mit.one(response) except ValueError: raise errors.NotFound(self)
def _data(self): response = self._vk.api.groups.getById(group_id=-self.id) try: return mit.one(response) except ValueError: raise errors.NotFound(self)
def _data(self): response = self._vk.api.users.get(user_ids=self.id) try: return mit.one(response) except ValueError: raise errors.NotFound(self)
def from_screen_name(self, screen_name): response = self._vk.api.users.get(user_ids=screen_name) try: return self(id=mit.one(response)["id"]) except ValueError: raise errors.NotFound(self)
def _data(self): response = self._vk.api.wall.getById(posts=self.full_id) try: return mit.one(response) except ValueError: raise errors.NotFound(self)