fetch data by ID
This commit is contained in:
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…
x
Reference in New Issue
Block a user