youtube

package
v4.4.0 Latest Latest
Warning

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

Go to latest
Published: Nov 11, 2021 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SearchRequest

type SearchRequest struct {
	// Query to search for
	Query string `json:"query"`
}

type SearchResponse

type SearchResponse struct {
	// List of results for the query
	Results []SearchResult `json:"results"`
}

type SearchResult

type SearchResult struct {
	// if live broadcast then indicates activity.
	// none, upcoming, live, completed
	Broadcasting string `json:"broadcasting"`
	// the channel id
	ChannelId string `json:"channelId"`
	// the channel title
	ChannelTitle string `json:"channelTitle"`
	// the result description
	Description string `json:"description"`
	// id of the result
	Id string `json:"id"`
	// kind of result; "video", "channel", "playlist"
	Kind string `json:"kind"`
	// published at time
	PublishedAt string `json:"publishedAt"`
	// title of the result
	Title string `json:"title"`
	// the associated url
	Url string `json:"url"`
}

type YoutubeService

type YoutubeService struct {
	// contains filtered or unexported fields
}

func NewYoutubeService

func NewYoutubeService(token string) *YoutubeService

func (*YoutubeService) Search

func (t *YoutubeService) Search(request *SearchRequest) (*SearchResponse, error)

Search for videos on YouTube

Jump to

Keyboard shortcuts

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