x_youtube

package
v0.0.0-...-90e558c Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 29, 2021 License: MIT Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ApiKeyClient

func ApiKeyClient(apiKey string) *http.Client

func OAuth2Client

func OAuth2Client(clientId, clientSecret string) *http.Client

Types

type Service

type Service interface {
	GetSubscriptionsChannelList() ([]string, error)
	GetChannelPlayListIds() ([]string, error)
	GetVideoListByPlayListId(playListId string) ([]*youtube.PlaylistItem, error)
}

func NewService

func NewService(ak, ci, cs, playListIds string) Service

type TokenKey

type TokenKey struct {
	ApiKey      string
	AccessToken string

	// Transport is the underlying HTTP transport.
	// If nil, http.DefaultTransport is used.
	Transport http.RoundTripper
}

func (*TokenKey) RoundTrip

func (t *TokenKey) RoundTrip(req *http.Request) (*http.Response, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL