ytuploader

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Jan 1, 2022 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateOauthToken

func CreateOauthToken() error

CreateOauthToken requests oauth token and saves it to a file.

func UploadVideo

func UploadVideo(v *VideoSetting) (string, error)

UploadVideo uploads a video to YouTube according to VideoSetting.

Types

type VideoSetting

type VideoSetting struct {
	Filename    string
	Title       string
	Description string

	// default is 22
	Category string

	// separate by comma
	Keywords string

	// public, unlisted, and private
	Privacy  string
	Language string
}

VideoSetting setting the video info that will be shown or be configured on YouTube

Jump to

Keyboard shortcuts

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