FS-Launch is a powershell script to login, download and run a FirstSpirit config file.
Just copy the script in a folder of your choice.
| const CACHE_TOKEN = 'NRJ14D_TOKEN' | |
| const SPOTIFY_CLIENT_ID = PropertiesService.getScriptProperties().getProperty('CLIENT_ID') | |
| const SPOTIFY_CLIENT_SECRET = PropertiesService.getScriptProperties().getProperty('CLIENT_SECRET') | |
| const REFRESH_TOKEN = PropertiesService.getScriptProperties().getProperty('REFRESH_TOKEN') | |
| const PLAYLIST_ID = PropertiesService.getScriptProperties().getProperty('PLAYLIST_ID') | |
| const ENERGY_HAMBURG_API_URL = 'https://api.nrjnet.de/webradio/playlist/energy/hamburg?day=0&hour=-1'; | |
| // fetch a new Spotify access token | |
| function getSpotifyAccessToken() { | |
| let token = CacheService.getScriptCache().get(CACHE_TOKEN); |