base.py 283 B

12345678910111213
  1. # coding=utf-8
  2. class ApiBase(object):
  3. def __init__(self, client):
  4. self._client = client
  5. def _post(self, path, **kwargs):
  6. return self._client.post(path, **kwargs)
  7. def __str__(self):
  8. return "{}-{}".format(self._client, self.__class__.__name__)