node-wind
An API for Wind bikes and boards
_Do you need a paid license ? https://jzarca01.github.io/contact
Usage
const Wind = ;const wind = 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 options = {};
How to use options
const Wind = ;const wind = timeout: 3000000000 headers: 'User-Agent': 'Nintendo 64' 'Device-id': 'your_own_uuid' Platform: 'ios' 'App-Version': 'the latest version' ...whatever you need to add;
For a cool example, see example/index.js
How to Log in
The authentication process is handled by Firebase, which relies on ReCAPTCHA whose implementation is only client-side Consequently, in order to implement this API you need to have a client-side part
For a cool example, run :
node example/client/index.js
and browse to http://localhost:8080/index.html
Then, once you have your Firebase token you can use it with this API For a cool example, see example/index.js
Methods
Login
await wind;
Get boards (scooters) nearby
await wind;
Get bikes nearby
await wind;
Get parking ports nearby
await wind;
Get operating countries
await wind;
Get operating areas
await wind;
Add card to account
await wind;
Delete card from account
await wind;
Get user
await wind;
Update profile
await wind;
Add driver license
await wind;
Get ride history
await wind
Get scooter
await wind// boardNo: S0024524
Set alarm
await wind
Unlock scooter
await wind/// boardId: "ef662f60-ade0-4022-ac5d-eae6cd0210ba"
Get ONGOING ride status
await wind
End ride
await wind
Send ONGOING ride waypoint
await wind
Send plain records
await wind