spotify-webplayer-accesstoken

2.0.0 • Public • Published

spotify-webplayer-accesstoken

This simple script provide an extended API access token extracted from Spotify Web Player to interact with all kind of API that Spotify provides.

It doesn't require any OAuth client configured, you have to provide your Spotify credentials.

UPDATE 2018/07/03: The getAccessToken method no longer works as Spotify introduced reCaptcha in login process, use getCredentials instead

WARNING: this is only a proof-of-concept hack, do not use in your commercial applications

Usage

Install with NPM:

npm i spotify-webplayer-accesstoken

View example.js for how to use.

Get initial cookies

To obtain the initial cookies, simply login with your account into https://open.spotify.com/browse and copy the cookies you found in the initial XHR request.

License

MIT

/spotify-webplayer-accesstoken/

    Package Sidebar

    Install

    npm i spotify-webplayer-accesstoken

    Weekly Downloads

    0

    Version

    2.0.0

    License

    MIT

    Unpacked Size

    4.8 kB

    Total Files

    5

    Last publish

    Collaborators

    • kopiro