예제 #1
0
 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)
예제 #2
0
 def _data(self):
     response = self._vk.api.groups.getById(group_id=-self.id)
     try:
         return mit.one(response)
     except ValueError:
         raise errors.NotFound(self)
예제 #3
0
 def _data(self):
     response = self._vk.api.users.get(user_ids=self.id)
     try:
         return mit.one(response)
     except ValueError:
         raise errors.NotFound(self)
예제 #4
0
 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)
예제 #5
0
 def _data(self):
     response = self._vk.api.wall.getById(posts=self.full_id)
     try:
         return mit.one(response)
     except ValueError:
         raise errors.NotFound(self)