Nissan: update api

This commit is contained in:
andig 2022-10-23 13:16:43 +02:00
parent 9846275912
commit 7a94bb1e6a

View file

@ -14,7 +14,7 @@ import (
const (
CarAdapterBaseURL = "https://alliance-platform-caradapter-prod.apps.eu2.kamereon.io/car-adapter"
UserAdapterBaseURL = "https://alliance-platform-usersadapter-prod.apps.eu2.kamereon.io/user-adapter"
UserBaseURL = "https://nci-bff-web-prod.apps.eu.kamereon.io/bff-web"
UserBaseURL = "https://nci-bff-web-prod.apps.eu2.kamereon.io/bff-web"
)
type API struct {
@ -45,7 +45,7 @@ func (v *API) Vehicles() ([]string, error) {
var res Vehicles
if err == nil {
uri := fmt.Sprintf("%s/v4/users/%s/cars", UserBaseURL, user.UserID)
uri := fmt.Sprintf("%s/v5/users/%s/cars", UserBaseURL, user.UserID)
err = v.GetJSON(uri, &res)
}