Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewService ¶
NewService must be called before the youtube package is going to be used. It receives a context and a configuration which contains the api token which can be found (or can be created) here: https://console.developers.google.com/apis/credentials
Types ¶
type Channel ¶
Channel contains information about a YouTube channel
func NewChannel ¶
NewChannel receive an url and based on it, creates a new Channel instance. In case of failure, an error is returned in second parameter, otherwise this parameter is nil
type Playlist ¶
type Playlist struct { ID string // contains filtered or unexported fields }
Playlist is used to identify uploaded videos for a channel
func NewPlaylist ¶
NewPlaylist receives a Channel struct and creates a new Playlist instance based on its parameter
func (*Playlist) GetNextVideos ¶
GetNextVideos obtains the list of videos from the current page
func (*Playlist) HasNextPage ¶
HasNextPage indicate if a playlist has more videos or not