2016-04-20 14:37:44 +00:00
|
|
|
"""TBD."""
|
2016-04-20 11:19:54 +00:00
|
|
|
|
|
|
|
|
|
|
|
class ApiClient(object):
|
|
|
|
"""Some API client."""
|
|
|
|
|
|
|
|
def __init__(self, host, api_key):
|
|
|
|
"""Initializer."""
|
|
|
|
self.host = host
|
|
|
|
self.api_key = api_key
|
|
|
|
|
|
|
|
def call(self, operation, data):
|
|
|
|
"""Make some network operations."""
|
2016-11-02 16:22:17 +00:00
|
|
|
print('API call [{0}:{1}], method - {2}, data - {3}'.format(
|
|
|
|
self.host, self.api_key, operation, repr(data)))
|