Hi Simon,

To get your access token an VIN, first do this:

curl \
   -H "Content-Type: application/json" \
   -X POST \
   -d '{"username":"[email protected]","password":"P4ssw0rd"}' \
   https://www.services.renault-ze.com/api/user/login`

You will need to put in your actual username and password.

That will give you a token and a VIN. Let's say the token is ABCDE (it will be much longer) and your VIN is 12345.

Then do:

curl \
   -H "Authorization: Bearer ABCDE" \
   "https://www.services.renault-ze.com/api/vehicle/1235/battery"

You will need to replace ABCDE with your real token and 12345 with your real VIN.

Good luck!

OSZAR »