Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/arodr967/spotifyapp
An app created using the Spotify Web API Tutorial.
https://github.com/arodr967/spotifyapp
Last synced: 19 days ago
JSON representation
An app created using the Spotify Web API Tutorial.
- Host: GitHub
- URL: https://github.com/arodr967/spotifyapp
- Owner: arodr967
- Created: 2015-12-30T20:01:37.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2015-12-30T20:40:32.000Z (almost 9 years ago)
- Last Synced: 2023-03-01T03:55:41.908Z (over 1 year ago)
- Language: HTML
- Size: 12.7 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Spotify Accounts Authentication Examples
This project contains basic demos showing the different OAuth 2.0 flows for [authenticating against the Spotify Web API](https://developer.spotify.com/web-api/authorization-guide/).
These examples cover:
* Authorization Code flow
* Client Credentials flow
* Implicit Grant flow## Installation
These examples run on Node.js. On [its website](http://www.nodejs.org/download/) you can find instructions on how to install it. You can also follow [this gist](https://gist.github.com/isaacs/579814) for a quick and easy way to install Node.js and npm.
Once installed, clone the repository and install its dependencies running:
$ npm install
## Running the examples
In order to run the different examples, open the folder with the name of the flow you want to try out, and run its `app.js` file. For instance, to run the Authorization Code example do:$ cd authorization_code
$ node app.jsThen, open `http://localhost:8888` in a browser.
### Using your own credentials
The examples contains a working client ID and secret key. Note, however, that they might be rate limited if they are used frequently. If you are planning to create an application, we recommend you register your app and get your own credentials instead of using the ones in this project.Go to [My Applications on Spotify Developer](https://developer.spotify.com/my-applications) and create your application. For the examples, we registered these Redirect URIs:
* http://localhost:8888 (needed for the implicit grant flow)
* http://localhost:8888/callbackOnce you have created your app, replace the `client_id`, `redirect_uri` and `client_secret` in the examples with the ones you get from My Applications.