This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const axios = require('axios') | |
const spotifyAPIBaseUri = 'https://api.spotify.com' | |
const spotifyAccountsBaseUri = 'https://accounts.spotify.com' | |
const { | |
SPOTIFY_CLIENT_ID, // Your Spotify OAuth Client ID | |
SPOTIFY_CLIENT_SECRET, // Spotify OAuth Client Secret | |
SPOTIFY_REFRESH_TOKEN, // Your personal refresh token (you have to authenticate yourself against your app once to receive this) | |
} = process.env |