>>> leaf = Leaf('my-email@gmail.com', 'my-password, region_code = 'NNA')
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/willem/.local/lib/python3.8/site-packages/leafpy/leaf.py", line 17, in __init__
self.custom_sessionid, self.VIN = login(username, password, self.region_code)
File "/home/willem/.local/lib/python3.8/site-packages/leafpy/auth.py", line 28, in login
r.raise_for_status()
File "/usr/lib/python3/dist-packages/requests/models.py", line 940, in raise_for_status
raise HTTPError(http_error_msg, response=self)
requests.exceptions.HTTPError: 404 Client Error: Not Found for url: https://gdcportalgw.its-mo.com/api_v190426_NE/gdc/UserLoginRequest.php
Getting this error now, I'm guessing that maybe Nissan changed their API again: