Easee: update login endpoint (#3519)

This commit is contained in:
Andreas 2022-05-27 11:59:10 +02:00 • committed by GitHub
parent 95e466c149
commit 78e6ed0388
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -52,7 +52,7 @@ func TokenSource(log *util.Logger, user, password string) (oauth2.TokenSource, e
Password: password,
}
uri := fmt.Sprintf("%s/%s", API, "accounts/token")
uri := fmt.Sprintf("%s/%s", API, "accounts/login")
req, err := request.New(http.MethodPost, uri, request.MarshalJSON(data), request.JSONEncoding)
if err == nil {