Exemplo n.º 1
0
 def __init__(self, access_key, secret_key, endpoint=None):
     """ Initialize client for given query endpoint.
     None as endpoint means default endpoint.
     """
     self.access_key = access_key
     self.kws = KWSSigner(secret_key)
     api_path = '/api'
     if endpoint is not None:
         self.api_url = endpoint + api_path
     else:
         self.api_url = QUERY_ENDPOINT + api_path
     self.debugging = False