Documentation ¶
Index ¶
- type Channel
- type CommentThread
- type Url
- type UrlType
- type Video
- type Youtube
- func (yt Youtube) GetAllPlaylists() ([]*youtube.Playlist, error)
- func (yt Youtube) GetChannelById(channelId string) (*Channel, error)
- func (yt Youtube) GetChannelByUsername(forUsername string) (*Channel, error)
- func (yt Youtube) GetComments(videoID string) ([]*CommentThread, error)
- func (yt Youtube) GetVideo(videoId string) (*Video, error)
- func (yt Youtube) GetVideosByChannelId(channelId string, publishAfter *time.Time) ([]string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Channel ¶
type Channel youtube.Channel
func (*Channel) Title ¶
ch.Snippet.Title is account title or showName, not username(username is like https://www.youtube.com/user/mttp88/videos)
type CommentThread ¶
type CommentThread youtube.CommentThread
type Youtube ¶
type Youtube struct {
// contains filtered or unexported fields
}
func NewWithKey ¶
NewYoutubeService create youtube client
func (Youtube) GetAllPlaylists ¶
Gets all playlists of current user - maxResult is set to 50 (default is 5) returns array of all playlists (id, name, count)
func (Youtube) GetChannelById ¶
func (Youtube) GetChannelByUsername ¶
根据用户名查询Channel信息 example: "TIME" The getChannelInfo uses forUsername to get info (id, tittle, totalViews and description)
func (Youtube) GetComments ¶
func (yt Youtube) GetComments(videoID string) ([]*CommentThread, error)
warning: 只是一部分评论
Click to show internal directories.
Click to hide internal directories.