calmjm / tojota

Functions for interacting with Toyota MyT API
Apache License 2.0
74 stars 15 forks source link

api changed -- run failed #44

Open lhumb opened 10 months ago

lhumb commented 10 months ago

After ha_toyota failed due to a changed API by actual MyT-App, I though, that toyota.py would present some infos so we are able to use it there…

but this python-program does not work anymore:

ValueError: Failed to get data {"timestamp":1704380246766,"status":403,"error":"Forbidden","message":"Verification is missing.","errorCode":"CMA403"} 403 {'Content-Type': 'application/json;charset=utf-8', 'ID': '8170a1bd-869b-40e
b-a01c-9e2e9b35be4e', 'X-Content-Type-Options': 'nosniff', 'X-XSS-Protection': '1; mode=block', 'Pragma': 'no-cache', 'X-Frame-Options': 'DENY', 'Vary': 'Origin', 'Access-Control-Allow-Credentials': 'true', 'Content-Length': '118
', 'Cache-Control': 'no-cache, no-store, must-revalidate', 'Expires': 'Thu, 04 Jan 2024 14:57:26 GMT', 'Date': 'Thu, 04 Jan 2024 14:57:26 GMT', 'Connection': 'keep-alive', 'Strict-Transport-Security': 'max-age=86400'}       
calmjm commented 10 months ago

Yeah, old API have been removed and current scripts in this repo don't work anymore.

There is rumor that this one works but I haven't had time to really look at it yet. https://github.com/DurgNomis-drol/mytoyota/

mveplus commented 7 months ago

Yes. It works when T migrated me to the new app and APIs only that one worked for a UK’s hybrid.