youtubeclient

package module
v0.0.0-...-7669cc7 Latest Latest
Warning

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

Go to latest
Published: Apr 6, 2023 License: MIT Imports: 4 Imported by: 0

README

youtubeclient

Fetch YouTube channel data

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ChannelData

type ChannelData struct {
	ID              string
	Title           string
	Description     string
	PublishedAt     string
	DefaultLanguage string
	Country         string
	CustomURL       string
	Keywords        []string
	SubscriberCount uint64
	ViewCount       uint64
	VideoCount      uint64
	Playlists       []Playlist
}

type Comment

type Comment struct {
	CommentID string
	Comment   string
	Author    string
	Replies   []Reply
}

type CommentThread

type CommentThread struct {
	Comments []Comment
}

type Playlist

type Playlist struct {
	ID             string
	Title          string
	Description    string
	NumberOfVideos int64

	Videos []Video
}

type Reply

type Reply struct {
	CommentID string
	Comment   string
	Author    string
}

type SimpleClient

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

func New

func New(ytService *youtube.Service) *SimpleClient

func (*SimpleClient) GetChannelDetails

func (c *SimpleClient) GetChannelDetails(channelID string) (*ChannelData, error)

type Video

type Video struct {
	ID            string
	Title         string
	Description   string
	PublishedAt   string
	CommentThread CommentThread
}

Jump to

Keyboard shortcuts

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