node-lyft-client
A Lyft client for calling Lyft's public API endpoints. See their API reference for more information.
Installation
npm install lyft-client
Usage
Sign up for a lyft developer account
here. You will get a client id
and
a client secret
. You will need these to initialize a Lyft
client
object.
// commonjs; // es2015; ; lyft.getRideTypes.then;
I recommend using dotenv to load your private Lyft tokens.
npm install dotenv
Create a file named .env
in the root of your project:
LYFT_CLIENT_ID=MY_CLIENT_ID
LYFT_CLIENT_SECRET=MY_CLIENT_SECRET
Then use dotenv
to load your .env
file into your environment:
;const Lyft = ; const lyft = processenvLYFT_CLIENT_ID processenvLYFT_CLIENT_SECRET;
See bschlenk.github.io/node-lyft-client for more documentation.
License
Credits
Forked from djchie/lyft-node.