tesla-net icon indicating copy to clipboard operation
tesla-net copied to clipboard

Endpoint deprecated: Please update your App

Open chrispi68 opened this issue 4 years ago • 6 comments

I get the following response:

{"response":null,"error":"Endpoint deprecated: Please update your App.","error_description":""}

chrispi68 avatar Feb 06 '21 12:02 chrispi68

To which request?

JSkimming avatar Feb 06 '21 13:02 JSkimming

 using (var httpClient = new HttpClient(TeslaClientBase.CreateDefaultHttpClientHandler(), false))
            {
                httpClient.DefaultRequestHeaders.UserAgent.ParseAdd("tesla-net/0.6.2");
                using (var auth = new TeslaAuthClient(httpClient))
                {
                    var authResult = auth.RequestAccessTokenAsync(TESLA_CLIENT_ID, TESLA_CLIENT_SECRET, EMAIL, PASSWORD).GetAwaiter().GetResult();
                    accessToken = authResult.Data.AccessToken;
                }
            }

authResult contains the "Endpoint deprecated" message and "accessToken = authResult.Data.AccessToken;" throws an exception.

chrispi68 avatar Feb 06 '21 13:02 chrispi68

For what it's worth - looks like Tesla deprecated the /oauth/token endpoint. Tim Dorr is working on updating the documentation now on his authentication page.

dsmithson avatar Feb 07 '21 01:02 dsmithson

Have you been able to figure this out using Tim's new documentation? I'm a bit confused by it and I don't see any changes here.

Thom-Ernst avatar Apr 15 '21 17:04 Thom-Ernst

It looks like this project is dead.

chrispi68 avatar Oct 17 '21 18:10 chrispi68

It's not dead, it's resting.

To be fair, I'm rather preoccupied at the moment, and I don't use this library in any meaningful way anymore. I may devote time to this in the future, but I can't give any timescales.

I could mark the repo as Archived if that helps.

JSkimming avatar Oct 17 '21 19:10 JSkimming