Module

YoutubeController

This controller is in charge of all the actions relating to calling the youtube API

View Source backend/controllers/youtubeController.js, line 1

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

View Source backend/controllers/youtubeController.js, line 57

# 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

View Source backend/controllers/youtubeController.js, line 20