This script uses your application's OAuth clientId and redirectUri (set up in the developer portal as a "Web" client type) to allow a MyVinli user to authorize your application. To use:
- Copy oauth-gen.js and package.json to the same directory.
- Run npm install.
- Run node oauth-gen.js and follow the prompts.
If successful, the script will print out the Bearer token. You can use this token to access the Vinli Platform API on behalf of a single user or use your Application's BasicAuth credentials (available in the dev portal) to access this user's devices as part of all the available devices.