Here's a early implementation of authenticated requests for YouTube Music. This could eventually lead to this library being able add or remove songs from playlists but for now, the only authenticated method I added, for demonstration, is getUserHistory()
Here's an example of how authenticated requests would go:
const YoutubeMusicApi = require('../index.js')
const api = new YoutubeMusicApi()
api.initalize('INSERT_COOKIE_HERE')
.then(info => {
api.getUserHistory().then(result => {
console.log(result)
})
})
Here's a early implementation of authenticated requests for YouTube Music. This could eventually lead to this library being able add or remove songs from playlists but for now, the only authenticated method I added, for demonstration, is getUserHistory()
Here's an example of how authenticated requests would go: