You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying this API an a Renault Scenic e-tech with this code:
asyncdefmain():
asyncwithaiohttp.ClientSession() aswebsession:
client=RenaultClient(websession=websession, locale=locale)
awaitclient.session.login(login_id, password)
person=awaitclient.get_person()
print("----------")
print(f"Accounts: {person}") # List available accounts, make a note of kamereon account idaccount_id="9813398a-6ce9-4111-9833-a862500bb44b"account=awaitclient.get_api_account(account_id)
print("----------")
vehicles=awaitaccount.get_vehicles()
print(f"Vehicles: {vehicles}") # List available vehicles, make a note of vehicle VINprint("----------")
vehicle=awaitaccount.get_api_vehicle(vin)
adapter=awaitvehicle.get_car_adapter()
print("adapter")
cockpit=awaitvehicle.get_cockpit()
print(f"Cockpit information: {cockpit}")
print("----------")
battery_status=awaitvehicle.get_battery_status()
print(f"Battery status information: {battery_status}")
loop=asyncio.get_event_loop()
loop.run_until_complete(main())
Everything is fine up until adapter = await vehicle.get_car_adapter() where the URL path resolves to /commerce/v1/accounts/«account ID»/kamereon/kca/car-adapter/v2/cars/«VIN»?country=«country»'
What am I doing wrong?
The text was updated successfully, but these errors were encountered:
I'm trying this API an a Renault Scenic e-tech with this code:
Everything is fine up until
adapter = await vehicle.get_car_adapter()
where the URL path resolves to/commerce/v1/accounts/«account ID»/kamereon/kca/car-adapter/v2/cars/
«VIN»?country=«country»'What am I doing wrong?
The text was updated successfully, but these errors were encountered: