Documentation ¶
Index ¶
- type Client
- func (c *Client) AddToPlaylist(playlist, video string) error
- func (c *Client) FetchLastPublished(playlist string) (*youtube.PlaylistItem, error)
- func (c *Client) Status(video string) (string, error)
- func (c *Client) Upload(title, desc string, tags []string, path string) (string, error)
- func (c *Client) WaitUntilProcessed(ctx context.Context, video string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client provides methods to access the YouTube API.
func NewClient ¶
NewClient creates a new authenticated client given the path of an oauth2 secret service and a token.
func (*Client) AddToPlaylist ¶
AddToPlaylist adds the given video id to a plyalist.
func (*Client) FetchLastPublished ¶
func (c *Client) FetchLastPublished(playlist string) (*youtube.PlaylistItem, error)
FetchLastPublished finds the number of the latest episode published in the playlist.
Click to show internal directories.
Click to hide internal directories.