kloudless.account - Account¶
-
class
kloudless.account.Account(token=None, api_key=None, account_id=None)¶ Bases:
kloudless.client.ClientAccount class that represents one Kloudless account.
Instance attributes
Variables: url (str) – Base url which would be used as prefix for all http method calls -
__init__(token=None, api_key=None, account_id=None)¶ Either
tokenorapi_keyis needed for instantiation.account_idis needed ifapi_keyis specified.Parameters: - token – Bearer token
- api_key – API key
- account_id – Account ID
-
raw(raw_method, raw_uri, **kwargs)¶ Method for Pass-Through API
Parameters: - raw_method (str) – The value stand for
X-Kloudless-Raw-Methodheader - raw_uri – The value stand for
X-Kloudless-Raw-URIheader - kwargs – kwargs passed to
kloudless.client.Client.post()
Returns: requests.Response- raw_method (str) – The value stand for
-
-
kloudless.account.get_verified_account(app_id, token)¶ Verify the
tokenbelongs to an Application withapp_idand return ankloudless.account.Accountinstance.Parameters: - app_id (str) – Application ID
- token (str) – Account’s Bearer token
Returns: Raise: