def __init__(self, appkey, secretkey, account_key=None, output='', response_format='json'): self.requestor = Requestor(credentials=Credentials( appkey, secretkey, account_key), output=output, response_format=response_format)
def create_requestor(self): return Requestor(Credentials("appkey", "secretkey"))
def __init__(self, allowed_keys, appkey, secretkey): super().__init__(Credentials(appkey, secretkey)) self.allowed_keys = allowed_keys
def create_credentials(keys) -> Credentials: if len(keys) == 2: return Credentials(keys[0], keys[1]) else: return Credentials(keys[0], keys[1], keys[2])