Skip to content

Commit

Permalink
Porsche: fix api updates (evcc-io#1670)
Browse files Browse the repository at this point in the history
  • Loading branch information
DerAndereAndi authored Sep 30, 2021
1 parent 270a29a commit a90990e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion vehicle/porsche/identity.go
Original file line number Diff line number Diff line change
Expand Up @@ -213,9 +213,10 @@ type VehicleResponse struct {
}

func (v *Identity) FindVehicle(accessTokens AccessTokens, vin string) (Vehicle, error) {
uri := "https://connect-portal.porsche.com/core/api/v3/de/de_DE/vehicles"
uri := "https://api.porsche.com/core/api/v3/de/de_DE/vehicles"
req, err := request.New(http.MethodGet, uri, nil, map[string]string{
"Authorization": fmt.Sprintf("Bearer %s", accessTokens.Token.AccessToken),
"apikey": EmobilityClientID,
})

var vehicles []VehicleResponse
Expand Down

0 comments on commit a90990e

Please sign in to comment.