This controller is in charge of all the actions relating to calling the youtube API
Methods
# static getLiveVideoId()
Returns the live video id of the requested channel id, tried to call it from cache if possible
Parameters:
Name | Type | Description |
---|---|---|
req.body.channelId |
* | id of the channle to find live video for |
# static getYoutubeChannelFromGoogle(accessToken, refreshToken)
Get the current users youtube channel from his access tokens
Parameters:
Name | Type | Description |
---|---|---|
accessToken |
* | our currentr access token |
refreshToken |
* | our current refresh token |