Git Product home page Git Product logo

node-bird's Introduction

node-bird

An API for Bird Scooters

Usage

const Bird = require('node-bird');
const bird = new Bird();

For a cool example, see example/index.js

Log in

bird.login((email = faker.internet.email()));

Verify email

bird.verifyCode(code);

Get user agreements

bird.getUserAgreement();

Accept user agreements

bird.acceptUserAgreement(uaId);

Get profile

bird.getProfile();

Update profile

bird.updateProfile(profile);

Add voucher code

bird.addVoucherCode(code);

Get Scooters Nearby

bird.getScootersNearby(latitude, longitude, (radius = 500));

Get Scooter details

bird.getScooterDetails(scooterId);
scooterId is not scooterCode

Set alarm for a scooter

bird.setScooterAlarm(scooterId);

Set missing for a scooter

bird.setScooterMissing(scooterId);

Scan scooter

bird.scanScooter(scooter);
scooter can be fetched from getScootersNearby array, or from getScooterDetails if you already know scooterId

Ride scooter

bird.rideScooter(scooter);
scooter can be fetched from getScootersNearby array

Stop ride

bird.stopRide(scooter, ride);
scooter can be fetched from getScootersNearby array
ride is returned from rideScooter method

Add card registered with Stripe to account

bird.addCardFromStripe(stripeToken, { latitude = faker.address.latitude(), longitude = faker.address.longitude() });

Get Stripe Customer

bird.getStripeCustomer();

Set card as default source in your Bird account

bird.setCardAsDefault(cardId, latitude = faker.address.latitude(), longitude = faker.address.longitude() });

node-bird's People

Contributors

jzarca01 avatar

Watchers

James Cloos avatar Dashon 'DJ' Hawkins avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.