Beispiel #1
0
 def __init__(
     self,
     token: Optional[str] = None,
     base_url: Optional[str] = WYZE_API_URL,
 ):
     super().__init__(token=token,
                      base_url=base_url,
                      request_verifier=RequestVerifier(signing_secret=None))
Beispiel #2
0
 def __init__(self,
              token: Optional[str] = None,
              base_url: Optional[str] = "https://api.wyzecam.com/",
              app_name: str = WYZE_APP_NAME,
              app_id: str = BaseServiceClient.WYZE_APP_ID,
              request_verifier: RequestVerifier = None):
     super().__init__(
         token=token,
         base_url=base_url,
         app_name=app_name,
         app_id=app_id,
         request_verifier=request_verifier
         if request_verifier is not None else RequestVerifier(
             signing_secret=WpkNetServiceClient.WYZE_SALTS[app_id],
             access_token=token))
 def __init__(
     self,
     token: Optional[str] = None,
     base_url: Optional[str] = WYZE_API_URL,
     sdk_version: Optional[str] = WYZE_SDK_VERSION,
     sdk_type: Optional[str] = WYZE_SDK_TYPE,
     user_id: Optional[str] = None,
 ):
     super().__init__(token=token,
                      base_url=base_url,
                      request_verifier=RequestVerifier(signing_secret=None))
     self.api_key = GeneralApiServiceClient.WYZE_API_KEY
     self.sdk_version = sdk_version
     self.sdk_type = sdk_type
     self.user_id = user_id
Beispiel #4
0
 def __init__(
     self,
     token: Optional[str] = None,
     base_url: Optional[str] = WYZE_API_URL,
     app_name: str = WYZE_APP_NAME,
     sc: str = SC,
 ):
     super().__init__(token=token, base_url=base_url, app_name=app_name, request_verifier=RequestVerifier(signing_secret=None))
     self.app_ver = self.app_name + '___' + self.app_version
     self.sc = sc