node-cityscoot

1.0.1 • Public • Published

node-bird

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();

Readme

Keywords

none

Package Sidebar

Install

npm i node-cityscoot

Weekly Downloads

2

Version

1.0.1

License

ISC

Unpacked Size

8.65 kB

Total Files

7

Last publish

Collaborators

  • jzarca01