Adding some features

This commit is contained in:
2023-06-24 14:25:44 +02:00
parent 4419482152
commit 0bfe341afe
8 changed files with 1261 additions and 10 deletions

14
main.js
View File

@@ -1,3 +1,13 @@
const Spotify = require('./src/spotify.js')
const SpotifyController = require('./src/spotify.js')
var spotifyController = new Spotify()
var spotifyController = new SpotifyController().then(initializingSuccess, printError)
// SpotifyController initialized
function initializingSuccess(result) {
console.log(result)
}
// Print the error to the console
function printError(error) {
console.log(error)
}