diff --git a/blinkpy/api.py b/blinkpy/api.py index 942d29d8..c4121248 100644 --- a/blinkpy/api.py +++ b/blinkpy/api.py @@ -62,8 +62,9 @@ async def request_login( async def request_verify(auth, blink, verify_key): """Send verification key to blink servers.""" url = ( - f"{blink.urls.base_url}/api/v4/account/{blink.account_id}" - f"/client/{blink.client_id}/pin/verify" + f"{blink.urls.base_url}/api/v5/accounts/{blink.account_id}" + f"/users/{blink.auth.user_id}" + f"/clients/{blink.client_id}/client_verification/pin/verify" ) data = dumps({"pin": verify_key}) return await auth.query( diff --git a/blinkpy/auth.py b/blinkpy/auth.py index 78db9d9a..8f5a7de1 100644 --- a/blinkpy/auth.py +++ b/blinkpy/auth.py @@ -49,6 +49,7 @@ def __init__( self.region_id = login_data.get("region_id", None) self.client_id = login_data.get("client_id", None) self.account_id = login_data.get("account_id", None) + self.user_id = login_data.get("user_id", None) self.login_response = None self.is_errored = False self.no_prompt = no_prompt @@ -64,6 +65,7 @@ def login_attributes(self): self.data["region_id"] = self.region_id self.data["client_id"] = self.client_id self.data["account_id"] = self.account_id + self.data["user_id"] = self.user_id return self.data @property