1
0
mirror of https://github.com/musix-org/musix-oss synced 2024-11-14 03:30:18 +00:00
musix-oss/node_modules/simple-youtube-api/examples/video.js

9 lines
300 B
JavaScript
Raw Normal View History

2019-05-30 09:06:47 +00:00
const YouTube = require('simple-youtube-api');
const youtube = new YouTube(' Y o u r A p i K e y ');
youtube.videoById('https://www.youtube.com/watch?v=3odIdmuFfEY')
.then(video => {
console.log(`The video's title is ${video[0].title}`);
})
.catch(console.log);