This file contains hidden or 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
// Build flags: -lavcodec -lavformat -lavutil -lswresample | |
#include <stdio.h> | |
#include <libavformat/avformat.h> | |
#include <libavcodec/avcodec.h> | |
#include <libavutil/avutil.h> | |
#include <libswresample/swresample.h> | |
int main(int argc, char **argv) { |
This file contains hidden or 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
import axios from 'axios'; | |
import WebSocket from 'ws'; | |
/* | |
Use a spotify acces token from an offical source like open.spotify.com. You can obtain it by using the network inspector in your browser. | |
Third-party access token obtained via OAuth2 will not work because of an api limitation by spotify. | |
*/ | |
const ACCESS_TOKEN = ""; | |
const createWebSocketUrl = (accessToken) => `wss://dealer.spotify.com/?access_token=${accessToken}`; |