yarn install
In order to correclty fetch data from Spotify's API, you need to get an access-token
. To get this token, you'll need to do the following:
-
Install Postman
-
In Postman go to the
Authorizaton
tab -
Set
Type
toOAuth 2.0
-
Press the
Get New Access Token
button, this will open a popup -
In this popup set the following:
Field Value Token name postman-spotify
Callback URL https://www.getpostman.com/oauth2/callback
Auth URL https://accounts.spotify.com/authorize
Access Token URL https://accounts.spotify.com/api/token
Client ID ******** Client Secret ******** Scope playlist-read-private playlist-modify-private
To get the
Client ID
andClient Secret
follow this Spotify Developers guide -
Press the
Request Token
button -
Log in with your spotify account
-
Copy the
access-token
on the response popup. -
Paste this token in:
/src/services/SpotifyServices.js
on theauthToken
variable
(You will need to follow this each time the access-token
expires)
yarn run serve