# node-cityscoot

> API wrapper for scooter-sharing app Cityscoot

Latest version **1.0.1** (published 2020-05-26) · ISC license · 0 weekly downloads

## Install

```sh
npm install node-cityscoot
pnpm add node-cityscoot
yarn add node-cityscoot
bun add node-cityscoot
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.1 |
| Published | 2020-05-26 |
| First published | 2020-05-26 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 5 |
| Unpacked size | 8.4 KB |
| Known vulnerabilities | 0 (+25 in 1 direct dependencies) |
| Install scripts | no |
| Author | Jeremie Zarca |
| Maintainers | jzarca01 |

## Links

- npm: https://www.npmjs.com/package/node-cityscoot
- npm.io page: https://npm.io/package/node-cityscoot

## Dependencies (5)

- [btoa](https://npm.io/package/btoa.md) ^1.2.1
- [path](https://npm.io/package/path.md) ^0.12.7
- [axios](https://npm.io/package/axios.md) ^0.19.2
- [app-root-path](https://npm.io/package/app-root-path.md) ^3.0.0
- [axios-license-middleware](https://npm.io/package/axios-license-middleware.md) ^1.0.0

## Recent versions

- 1.0.1 (latest) — 2020-05-26
- 1.0.0 — 2020-05-26

## README

# node-bird

An API for Cityscoot scooters

Do you need a __paid license__ ? [https://jzarca01.github.io/contact](https://jzarca01.github.io/contact)

## Usage

```javascript
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

```javascript
await city.login();
```

### Get Scooters

```javascript
await city.getScooters(cityId);
// Paris: 4
// Nice: 6
// Milan: 9
// Rome: 10
```

### Get Scooter by code

```javascript
await city.getScooter(cityId, scooterName);
// cityId: 4
// scooterName: 5193
```

### Create a reservation

```javascript
await city.createReservation(scooterId);
// scooterId can be fetched from getScooter
```

### Cancel a reservation

```javascript
await city.cancelReservation();
```

---
_Source: https://npm.io/package/node-cityscoot · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
