Skip to content

Instantly share code, notes, and snippets.

View pkinney's full-sized avatar

Powell Kinney pkinney

View GitHub Profile

Keybase proof

I hereby claim:

  • I am pkinney on github.
  • I am pkinney (https://keybase.io/pkinney) on keybase.
  • I have a public key ASC1Gk552BCTn_tZWbXMHYTmuX5yfbDu7wJwCkLh-Wja-wo

To claim this, I am signing this object:

@pkinney
pkinney / README.md
Last active November 18, 2015 21:48
Script for generating an OAuth token using MyVinli credentials

Vinli OAuth Token Generator

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:

  1. Copy oauth-gen.js and package.json to the same directory.
  2. Run npm install.
  3. 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.

Powell's 6-Step Plan to NPM Happiness

When things go wrong:

  1. Do what the error says.
  2. rm -rf node_modules && npm install (if in Ember.js - rm -rf bower_components && bower install)
  3. rm -rf node_modules && rm -rf ~/.npm && npm install
  4. Reinstall node and npm.
  5. Format your harddrive.
  6. Buy a new computer.