Пример #1
0
 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)
Пример #2
0
 def create_requestor(self):
     return Requestor(Credentials("appkey", "secretkey"))
Пример #3
0
 def __init__(self, allowed_keys, appkey, secretkey):
     super().__init__(Credentials(appkey, secretkey))
     self.allowed_keys = allowed_keys
Пример #4
0
def create_credentials(keys) -> Credentials:
    if len(keys) == 2:
        return Credentials(keys[0], keys[1])
    else:
        return Credentials(keys[0], keys[1], keys[2])