bogosj / tesla

Provides a wrapper around the API to easily query and command a Telsa car.
Other
22 stars 18 forks source link

Login gives HTTP 403 #83

Open istvan-fodor opened 2 years ago

istvan-fodor commented 2 years ago

When I try to run the login command, I get a 403 error. Is this just me or is there an issue with the API itself?

Username: my_email@gmail.com
Password: ******************
2022/07/01 13:45:07 unexpected status code 403
exit status 1
andig commented 2 years ago

You need the token to login. User password didn‘t work for a long time.

istvan-fodor commented 2 years ago

Understood. Is there a way to obtain a token besides what is written in the Readme? I get the above error when I try to obtain the token with the command below:

go run . -o ~/tesla.token
bogosj commented 2 years ago

I've used this app in the past:

https://play.google.com/store/apps/details?id=net.leveugle.teslatokens

tijszwinkels commented 2 years ago

format of the tesla.token file is as following:

{   "access_token":"replace-with-your-access-token",
    "refresh_token": "replace-with-your-refresh-token"
}

source: https://cs.opensource.google/go/x/oauth2/+/128564f6:token.go;l=31