Skip to content

Commit

Permalink
all no longer works => switch to naming needed status
Browse files Browse the repository at this point in the history
  • Loading branch information
StefanSchoof committed Dec 18, 2023
1 parent 7dd0666 commit e1f326a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions vehicle/vw/id/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,7 @@ func (v *API) Vehicles() ([]Vehicle, error) {
// Status implements the /status response.
// It is callers responsibility to check for embedded (partial) errors.
func (v *API) Status(vin string) (res Status, err error) {
// NOTE use `all` to retrieve entire status (or charging,fuelStatus,climatisation,measurements)
uri := fmt.Sprintf("%s/vehicles/%s/selectivestatus?jobs=all", BaseURL, vin)
uri := fmt.Sprintf("%s/vehicles/%s/selectivestatus?jobs=charging,fuelStatus,climatisation,measurements", BaseURL, vin)

req, err := request.New(http.MethodGet, uri, nil, request.AcceptJSON)

Expand Down

0 comments on commit e1f326a

Please sign in to comment.