Script that generates a refresh token for the Spotify Web API
To use this script, you'll need to have the following:
- A Spotify account
- The Spotify client ID and Secret Key (you can create an app in the Spotify Developer Dashboard)
- Clone or download this repository to your computer.
- Navigate to the directory where you cloned or downloaded this repository.
- Run the corresponding script:
- Linux and Mac (Shell):
scriptSH.sh
- Windows (PowerShell):
scriptPS.ps1
- Linux and Mac (Shell):
- Follow the instructions in the terminal to enter your Spotify client ID and secret, and to log in to your Spotify account.
- Once you have logged in, paste the authorization code into the terminal window as prompted.
- At the end the script will generate a
.env
file with the following information:CLIENT_ID=<your-client-id> CLIENT_SECRET=<your-client-secret> REFRESH_TOKEN=<your-refresh-token>
This script is licensed under the MIT License, which means you can use, modify, and distribute it freely as long as you include the license file and give credit to the original author