fetch data by ID

master
Marek Isalski 2 years ago
parent 5bdebd8e63
commit 4e27779299

@ -147,6 +147,9 @@ class APIObject(object):
@property
def data(self):
if self._data is None:
if self.id:
self._data = self._api.get(self.makeUrl(id=self.id))
else:
self._data = self._api.get(self.makeUrl())
return self._data

Loading…
Cancel
Save