Skip to content

yusufusta/spotify-token

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

spotify-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

About

JavaScript wrapper for Spotify's Web Player's Access token

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published