The goal it's to create an api that can be use directly with rxjs Observable to fetch Renault API data.
import { switchMap } from 'rxjs';
import { Kamereon } from '../src';
const kamereon: Kamereon = Kamereon.instance();
kamereon
.login({
loginID: 'loginID',
password: 'password',
})
.pipe(
switchMap(() => kamereon.getPerson()),
switchMap(() => kamereon.getVehicles()),
switchMap(() => kamereon.getVehicle('VIN_ID'))
)
.subscribe({
next: (value) => {
console.log(value);
},
});
Distributed under the terms of the MIT_ license, Renault API Typescript is free and open source software.
This project is not affiliated with, endorsed by, or connected to Renault. I accept no responsibility for any consequences, intended or accidental, as a as a result of interacting with Renault's API using this project.
This project was heavily inspired on https://github.com/hacf-fr/renault-api python client.