Commit from m3o/m3o action

This commit is contained in:
m3o-actions
2021-12-10 11:37:47 +00:00
parent 9e505ad6fd
commit fb17d4eeb8
27 changed files with 1228 additions and 1181 deletions

View File

@@ -0,0 +1,17 @@
package main
import (
"fmt"
"os"
"go.m3o.com/youtube"
)
// Embed a YouTube video
func main() {
youtubeService := youtube.NewYoutubeService(os.Getenv("M3O_API_TOKEN"))
rsp, err := youtubeService.Embed(&youtube.EmbedRequest{
Url: "https://www.youtube.com/watch?v=GWRWZu7XsJ0",
})
fmt.Println(rsp, err)
}