Low-level Cloud API calls¶
Module for handling Cozify Cloud API 1:1 functions
-
cozify.cloud_api.
emaillogin
(email, otp)[source]¶ Raw Cloud API call, request cloud token with email address & OTP.
Parameters: - email (str) – Email address connected to Cozify account.
- otp (int) – One time passcode.
Returns: cloud token
Return type: str
-
cozify.cloud_api.
hubkeys
(cloud_token)[source]¶ 1:1 implementation of user/hubkeys
Parameters: cloud_token (str) – Returns: Map of hub_id: hub_token pairs. Return type: dict
-
cozify.cloud_api.
lan_ip
()[source]¶ 1:1 implementation of hub/lan_ip
This call will fail with an APIError if the requesting source address is not the same as that of the hub, i.e. if they’re not in the same NAT network. The above is based on observation and may only be partially true.
Returns: List of Hub ip addresses. Return type: list