Skip to content

Commit

Permalink
Fix cockpit access by switching to v1 endpoint
Browse files Browse the repository at this point in the history
This allows the totalMileage to be fetched again

See hacf-fr/renault-api#1135
  • Loading branch information
ledermann committed Apr 16, 2024
1 parent 464e4ee commit 5a9bd17
Show file tree
Hide file tree
Showing 4 changed files with 161 additions and 121 deletions.
2 changes: 1 addition & 1 deletion lib/ruze/kamereon.rb
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ def battery

def cockpit
@cockpit ||= return_from get(
uri("/accounts/#{account_id}/kamereon/kca/car-adapter/v2/cars/#{vin}/cockpit?country=#{COUNTRY}"),
uri("/accounts/#{account_id}/kamereon/kca/car-adapter/v1/cars/#{vin}/cockpit?country=#{COUNTRY}"),
headers
), keys: %w[data attributes]
end
Expand Down
81 changes: 43 additions & 38 deletions spec/cassettes/gigya_valid_credentials.yml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 5a9bd17

Please sign in to comment.