Last active
January 14, 2019 14:04
-
-
Save mathieue/bb6e00a6010c64678857d166a968b716 to your computer and use it in GitHub Desktop.
Export a playlist to any service calling Playlist Converter Api with nodejs.
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
console.log("runing playlist converter api demo...."); | |
var name = "Super Playlist"; | |
var tracks = []; | |
tracks.push("Shape of You Ed Sheeran"); | |
tracks.push("One Dance Drake"); | |
let tracksJoined = tracks.join("\n"); | |
let uri = | |
"http://www.playlist-converter.net/#/?text=" + | |
encodeURIComponent(tracksJoined) + "&name=" + encodeURIComponent(name); | |
console.log("Follow this url:"); | |
console.log(uri); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment