Documentation ¶
Index ¶
- func BaseListCall(service *youtube.Service) *youtube.SearchListCall
- func GetToken(ctx context.Context, config *oauth2.Config) *oauth2.Token
- func GetVideoId(listResponse youtube.SearchListResponse) []string
- func LoadListResponse(file string, listResponse any)
- func NewService() *youtube.Service
- func SaveListResponse(file string, listResponse any)
- type API
- type SearchOptions
- type YoutubeAPI
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BaseListCall ¶
func BaseListCall(service *youtube.Service) *youtube.SearchListCall
func GetVideoId ¶
func GetVideoId(listResponse youtube.SearchListResponse) []string
func LoadListResponse ¶
func NewService ¶
func NewService() *youtube.Service
func SaveListResponse ¶
Types ¶
type API ¶
type API interface { GetSearchList(options *SearchOptions) youtube.SearchListResponse GetVideosList(id []string) youtube.VideoListResponse }
type SearchOptions ¶
type SearchOptions struct {
// contains filtered or unexported fields
}
func (*SearchOptions) Gaming ¶
func (so *SearchOptions) Gaming()
func (*SearchOptions) WithPublishedAfter ¶
func (so *SearchOptions) WithPublishedAfter(time string)
func (*SearchOptions) WithPublishedBefore ¶
func (so *SearchOptions) WithPublishedBefore(time string)
func (*SearchOptions) WithToken ¶
func (so *SearchOptions) WithToken(token string)
type YoutubeAPI ¶
type YoutubeAPI struct {
// contains filtered or unexported fields
}
func NewYoutubeAPI ¶
func NewYoutubeAPI(service *youtube.Service) *YoutubeAPI
func (*YoutubeAPI) GetSearchList ¶
func (yt *YoutubeAPI) GetSearchList(options *SearchOptions) youtube.SearchListResponse
func (*YoutubeAPI) GetVideosList ¶
func (yt *YoutubeAPI) GetVideosList(id []string) youtube.VideoListResponse
Click to show internal directories.
Click to hide internal directories.