An API for Bird Scooters
_Do you need a paid license ? https://jzarca01.github.io/contact
const Bird = require('node-bird');
const bird = new 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 = {}
});
const Bird = require('node-bird');
const bird = new 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
bird.login(email = faker.internet.email());
bird.verifyCode(code);
bird.getUserAgreement();
bird.acceptUserAgreement(uaId);
bird.getProfile();
bird.updateProfile(profile);
bird.addVoucherCode(code);
bird.getScootersNearby(latitude, longitude, radius = 500);
radius in meters;
bird.scanScooter(scooterCode, location = { latitude, longitude });
bird.getScooterDetails(scooter);
scooter is returned by scanScooter
bird.setScooterAlarm(scooter);
bird.setScooterMissing(scooter);
bird.scanScooter(scooterCode, location = { latitude, longitude });
bird.getActiveRide(location = { latitude, longitude });
bird.rideScooter(scooter);
scooter can be fetched from getScootersNearby array or scanScooter
bird.stopRide(scooter, ride);
scooter can be fetched from getScootersNearby array or scanScooter
ride is returned from rideScooter method
bird.getActiveReservation(location = { latitude, longitude });
const reservation = bird.createReservation(scooter);
scooter can be fetched from getScootersNearby array or scanScooter
bird.cancelReservation(reservation);
reservation is returned from createReservation method
bird.getNearbyParking(
location = { latitude, longitude },
radius = "5000.0"
);
bird.getLongTermRental(
location = { latitude, longitude }
);
bird.getPrivateBird(limit = 20);
bird.getStripeCustomer();
bird.getStripeKey();
const stripeCard = bird.createStripeCard({ cardNumber, expMonth = "09", expYear = "2020", cardCvc = "123" });
bird.addCardFromStripe(stripeCard.id, latitude = faker.address.latitude(), longitude = faker.address.longitude();
stripeCard is defined above
bird.setCardAsDefault(
cardId,
latitude = faker.address.latitude(),
longitude = faker.address.longitude()
);
bird.getConfigByLocation({ latitude, longitude});