Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrIncorrectVideoID return when youtube API return empty video details ErrIncorrectVideoID = errors.New("Couldn't find Youtube video by specified video ID") // ErrAPIKeyIsEmpty return when os.Getenv() return empty Youtube API key ErrAPIKeyIsEmpty = errors.New("Youtube API key was not specified") )
Functions ¶
This section is empty.
Types ¶
type PlaylistItems ¶
type PlaylistItems struct {
NextPageToken string `json:"nextPageToken"`
Items []items
}
type Youtube ¶
type Youtube struct {
APIKEY string
}
func NewYoutubeClient ¶
NewYoutubeClient create and return new instanse of YoutubeClient
func (Youtube) GetPlaylistDetails ¶
func (youtube Youtube) GetPlaylistDetails(id string) ([]*PlaylistItems, error)
GetPlaylistDetails extract all video from playlist and return This func is not complete and is not working Since we use free Google account, API quotas is to small, so handling multiple playlists may run out of limits quotas
Click to show internal directories.
Click to hide internal directories.