1.0.1 • Published 2 years ago

node-cowboybike v1.0.1

Weekly downloads
-
License
GNU GENERAL PUBLI...
Repository
github
Last release
2 years ago

node-cowboybike

API wrapper for cowboy bikes

Makes it super easy to get details of your account and bike. All results are typescript models and are promise based. Async/await is supported.

Construct the wrapper

import { Cowboy } from "node-cowboybike";

const cowboy = new Cowboy('username', 'password');

The wrapper takes care of refreshing and retrieving access tokens for you when required.

Retrieve account details

client.getMe().then(result => {
    console.log(result);
});

Retrieve details of your bike

client.getBike(bikeId).then(result2 => {
    console.log(result2);
});

// bikeId is of type int, can be found from the getMe() result
1.0.1

2 years ago

1.0.0

2 years ago

0.1.0

2 years ago