I need to get a title from YouTube video. How can I change a request from this library to be async? Actually this returns undefined
this is a vue.js app
async addNewVideoToLocalStorage() {
let id = getIdFromURL(this.videosUrl[0].url);
let title = await getYoutubeTitle(id, async (e, t) => await t);
}
async , await cannot work in getYoutubeTitle
try this way