Skip to content

Commit 353ec90

Browse files
author
Ian
authored
fix(Vehicle List): Fix vehicle endpoint (#60)
1 parent cbe9179 commit 353ec90

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

connectedcar/user.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,9 +44,9 @@ def vehicles(self):
4444
"""
4545

4646
response = self.api.get(
47-
const.VEHICLE_URL,
48-
'dashboard/v1/users/vehicles?country=USA&language=EN&region=US&skipRecall=true')
49-
return response.json()
47+
const.USER_URL,
48+
'users/vehicles')
49+
return response.json()['vehicles']['$values']
5050

5151
def add_vehicle(self, vehicle_id):
5252
""" POST User.add_vehicle

0 commit comments

Comments
 (0)