This repository was archived by the owner on Sep 20, 2023. It is now read-only.

Description
Not sure why there's an error but it goes as follow
LOG [TypeError: undefined is not a function]
Code:
const payload = {
channelId: 'UCXuqSBlHAE6Xw-yeJA0Tunw', // Required
channelIdType: 0
}
ytch.getChannelInfo(payload).then((response) => {
if (!response.alertMessage) {
console.log(response)
} else {
console.log('Channel could not be found.')
// throw response.alertMessage
}
}).catch((err) => {
console.log(err)
})
}, []);