Open besi opened 4 years ago
if key == 'KEY_FASTFORWARD': os.system('curl -X POST "https://api.spotify.com/v1/me/player/next" -H "Authorization: Bearer XYZ-ABC" &')
if key == 'KEY_REWIND': os.system('curl -X POST "https://api.spotify.com/v1/me/player/previous" -H "Authorization: Bearer XYZ-ABC" &')
Use the token to skip the song:
This will skip the song
https://stackoverflow.com/a/46369082/784318