Versions in this module Expand all Collapse all v0 v0.0.1 Oct 4, 2022 v0.0.0 Oct 4, 2022 Changes in this version + func ToVideoId(urlOrId string) (string, error) + func ToVideoIds(urlsOrIds []string) ([]string, error) + type Playlist struct + Description string + ID string + Title string + Videos []PlaylistItem + Visibility string + type PlaylistDiffResult struct + Deletes []PlaylistItemDelete + Inserts []PlaylistInsert + type PlaylistInsert struct + Position int64 + VideoId string + type PlaylistItem struct + ID string + Title string + VideoID string + type PlaylistItemDelete struct + ItemId string + type YouTube struct + func New(ctx context.Context, endpoint, refreshToken string) (*YouTube, error) + func (y *YouTube) CreatePlaylist(ctx context.Context, title, desc, visibility string) (*youtube.Playlist, error) + func (y *YouTube) DeletePlaylist(ctx context.Context, id string) error + func (y *YouTube) DiffPlaylist(wantIds []string, gotItems []*youtube.PlaylistItem) PlaylistDiffResult + func (y *YouTube) GetPlaylist(ctx context.Context, id string) (*youtube.Playlist, error) + func (y *YouTube) GetPlaylistItems(ctx context.Context, playlistId string) ([]*youtube.PlaylistItem, error) + func (y *YouTube) GetPlaylists(ctx context.Context) ([]*youtube.Playlist, error) + func (y *YouTube) SyncPlaylist(ctx context.Context, playlistId string, wantIds []string) (*PlaylistDiffResult, error) + func (y *YouTube) UpdatePlaylist(ctx context.Context, id, title, desc, visibility string) (*youtube.Playlist, error)