spotify-token

1.0.1 • Public • Published

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

Readme

Keywords

Package Sidebar

Install

npm i spotify-token

Weekly Downloads

1

Version

1.0.1

License

MIT

Unpacked Size

3.85 kB

Total Files

6

Last publish

Collaborators

  • quiec