node-cityscoot
An API for Cityscoot scooters
Do you need a paid license ? https://jzarca01.github.io/contact
Usage
const Cityscoot = require('node-cityscoot');
const city = new Cityscoot({
licenseFilePath: './license_files/file.lic', // relative path to the root of the project
licenseFile, // if you prefer to specify the raw content of the license file
email: '',
password: ''
});
For a cool example, see example/index.js
Log in
await city.login();
Get Scooters
await city.getScooters(cityId);
// Paris: 4
// Nice: 6
// Milan: 9
// Rome: 10
Get Scooter by code
await city.getScooter(cityId, scooterName);
// cityId: 4
// scooterName: 5193
Create a reservation
await city.createReservation(scooterId);
// scooterId can be fetched from getScooter
Cancel a reservation
await city.cancelReservation();