Start using package by creating a new instance of the Client class and calling the login method.
const client = new Client();await client.login({ email: 'test@test.com', password: 'testpass'}); Copy
const client = new Client();await client.login({ email: 'test@test.com', password: 'testpass'});
Then you can start using the API by calling the getStations method.
const stations = await client.getStations();console.log(stations); Copy
const stations = await client.getStations();console.log(stations);
You can also get a single station by calling the getStation method.
const station = await client.getStation('57468337076757d9a7acf610');console.log(station); Copy
const station = await client.getStation('57468337076757d9a7acf610');console.log(station);
Checkout API documentation for more methods.
Optional
Login to the API
Login options
Access token
If email or password is missing
If user is already logged in
If login fails
Start using package by creating a new instance of the Client class and calling the login method.
Then you can start using the API by calling the getStations method.
You can also get a single station by calling the getStation method.
Checkout API documentation for more methods.
See