PROJECT IS OUTDATED
If you like the code and want to support me:
Displays your spotify current track on your instagram biography, editable track display and biography Description
Features
- 15s delay
- Spotify Token auto-refresh
- Prevent fast profile updating so I won't be blocked :D
- Work on a computer or a vps
Installation
Requirements
- NodeJS and NPM
- Download the repository
- Spotify Account (Free or Premium, don't care)
- Instagram Account (Private or Public, don't care too)
How to launch program
- Extract the source code on your computer
⚠ ⚠ Open thecredentials.json
and see how to get all the credentials below!⚠ ⚠ - Edit
config.json
file as you want, but DON'T REMOVE %title%, %author% and %track% ! (PS: \n = a line break) - Copy path to the extracted folder
- Press Windows + R, write
cmd
and press Enter - on the console, write:
cd Path/to/the/code
and press enter - Now write
npm install --save
and press enter - once all the packages have been installed, write
node app.js
If all the credentials are valid, program should start and change your bio as the window is opened every 5s
How to get ClientID and ClientSecret:
- Go to: https://developer.spotify.com/dashboard/
- Connect to your spotify account
- Click on "create an app"
- Choose a name, description, and accept terms
- Copy ClientID and click on "Show client secret"
- Now you have your client id and secret!
How to get AccessToken and RefreshToken
- Go on your spotify dashboard
- Click on your application
- Click on edit settings
- On the "redirect URI" tab, add the website
https://ezzud.tk/portfolio/
- Copy and go on this url with changing client ID by your application client id:
https://accounts.spotify.com/authorize?response_type=code&client_id=YOUR CLIENT ID&scope=user-read-private%20user-read-email%20user-read-playback-state%20user-modify-playback-state%20user-read-currently-playing&redirect_uri=https:%2F%2Fezzud.tk%2Fportfolio%2F&show_dialog=true
- Accept authorization
- U got redirected on
ezzud.tk/portfolio/?code=random_code
- Copy all the caracters after "?code="
- Press Windows + R, Write "cmd" and press Enter
- Copy with changing values by your application values and your code:
curl -d grant_type=authorization_code -d client_id=YOUR CLIENT ID -d client_secret=YOUR CLIENT SECRET -d code=THE CODE YOU COPIED BEFORE -d redirect_uri=https%3A%2F%2Fezzud.tk%2Fportfolio%2F https://accounts.spotify.com/api/token
- If all is good u will receive something like this:
{
"access_token":"Random characters unique to each account",
"token_type":"Bearer",
"expires_in":3600,
"refresh_token":"Random characters unique to each account",
"scope":"user-modify-playback-state user-read-playback-state user-read-currently-playing user-read-email user-read-private"
}
- Copy list of characters after "access_token" and paste in the
credentials.json
file, for the value accessToken - Copy list of characters after "refresh_token" and paste in the
credentials.json
file, for the value refreshToken
You can support me on paypal: https://paypal.me/ezzudd