node-bird
An API for Bird Scooters
_Do you need a paid license ? https://jzarca01.github.io/contact
Usage
const Bird = ;const bird = 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 Bird = ;const bird = 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
Log in
bird;
Verify email
bird;
Get user agreements
bird;
Accept user agreements
bird;
Get profile
bird;
Update profile
bird;
Add voucher code
bird;
Get Scooters Nearby
bird;radius in meters;
Get Scooter by code
bird;
Get Scooter details
bird;scooter is returned by scanScooter
Set alarm for a scooter
bird;
Set missing for a scooter
bird;
Scan scooter
bird;
Get active ride
bird;
Ride scooter
bird;scooter can be fetched from getScootersNearby array or scanScooter
Stop ride
bird;scooter can be fetched from getScootersNearby array or scanScooterride is returned from rideScooter method
Get active reservation
bird;
Create a reservation
const reservation = bird;scooter can be fetched from getScootersNearby array or scanScooter
Cancel a reservation
bird;reservation is returned from createReservation method
Get nearby parking nests
bird;
Get long-term rental
bird;
Get private Bird
bird;
Get Stripe Customer
bird;
Get Stripe key
bird;
Add card to Stripe
const stripeCard = bird;
Add card registered with Stripe to account
bird
Set card as default source in your Bird account
bird;
Get config by location
bird;