1.0.1 • Published 4 years ago

spotify-token v1.0.1

Weekly downloads
2
License
MIT
Repository
github
Last release
4 years ago

spotify-webplayer-token

A better experience than Spotify API and a script that can be used for all access.

This project, inspired by enriquegh project.

Installing

npm install spotify-token

Usage

To get a cookie:

  1. You can use any cookie application. Since I'm using Chrome, I'll use EditThisCookie.
  2. Let's login to Spotify from this address.
  3. After logging in, open the EditThisCookie plug-in; Let's copy the values ​​of sp_dc and sp_key.
  4. Done!

Let's add it to the code now (sp_dc and sp_key)

For example:

const spotify = require('spotify-token');
    
spotify.getAccessToken("sp_dc", "sp_key").then(function(token){
	console.log(token);
});

Developer

Quiec

License

MIT