fabric/youtube/youtube.go

26 lines
412 B
Go
Raw Normal View History

package youtube
import (
"github.com/danielmiessler/fabric/common"
)
func NewYouTube() (ret *YouTube) {
label := "YouTube"
ret = &YouTube{}
ret.Configurable = &common.Configurable{
Label: label,
EnvNamePrefix: common.BuildEnvVariablePrefix(label),
}
2024-08-17 16:43:56 +00:00
ret.ApiKey = ret.AddSetupQuestion("API key", true)
return
}
type YouTube struct {
*common.Configurable
2024-08-17 14:17:56 +00:00
ApiKey *common.SetupQuestion
}