Authorization Code Flow
This is a small node.js script that authenticates a user using the authorization code flow and fetches data from the Spotify Web API.
- Node.js - Download and Install Node.js. You can also follow this gist for a quick and easy way to install Node.js and npm
- NPM - Node.js package manager, should be installed when you install node.js.
The quickest way to get started is to clone the project and utilize it like this:
Install dependencies:
$ npm install
Add your client key and secret to config/shared.js
Run the server
$ node app.js
Browse http://localhost:8888/login
$ open http://localhost:8888/login
Once you have done the oAuth dance, check the console for the access token