Nissan: update api
This commit is contained in:
parent
9846275912
commit
7a94bb1e6a
1 changed files with 2 additions and 2 deletions
|
|
@ -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)
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue