https://github.com/la-lo-go/spotify-refresh-token-generator
Shell and PowerShell scripts to easily get the spotify refresh token
https://github.com/la-lo-go/spotify-refresh-token-generator
bash powershell spotify spotify-api
Last synced: about 1 month ago
JSON representation
Shell and PowerShell scripts to easily get the spotify refresh token
- Host: GitHub
- URL: https://github.com/la-lo-go/spotify-refresh-token-generator
- Owner: la-lo-go
- License: mit
- Created: 2023-02-14T12:22:30.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2024-01-09T14:52:38.000Z (over 2 years ago)
- Last Synced: 2025-03-15T09:41:25.696Z (over 1 year ago)
- Topics: bash, powershell, spotify, spotify-api
- Language: PowerShell
- Homepage:
- Size: 6.84 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Spotify Refresh Token Generator
Script that generates a refresh token for the Spotify Web API
## Prerequisites
To use this script, you'll need to have the following:
1. A Spotify account
2. The Spotify client ID and Secret Key (you can create an app in the [Spotify Developer Dashboard](https://developer.spotify.com/dashboard/login))
## How to use
1. Clone or download this repository to your computer.
2. Navigate to the directory where you cloned or downloaded this repository.
3. Run the corresponding script:
- Linux and Mac (Shell): `scriptSH.sh`
- Windows (PowerShell): `scriptPS.ps1`
4. Follow the instructions in the terminal to enter your Spotify client ID and secret, and to log in to your Spotify account.
5. Once you have logged in, paste the authorization code into the terminal window as prompted.
6. At the end the script will generate a `.env` file with the following information:
```
CLIENT_ID=
CLIENT_SECRET=
REFRESH_TOKEN=
```
## License
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