go-youtube is a Go client library for accessing the YouTube API
go get github.com/tsirysndr/go-youtube
Import the package into your project.
import "github.com/tsirysndr/go-youtube"
Construct a new YouTube client, then use the various services on the client to access different parts of the YouTube API. For example:
client := youtube.NewClient("<YOUR TOKEN AUTHORIZATION>", "<YOUR API KEY>")
result, _ := client.Search.Search("doja cat")
r, _ := json.Marshal(result)
fmt.Println(string(r))
π€ Tsiry Sandratraina
- Twitter: @tsiry_sndr
- Github: @tsirysndr
Give a βοΈ if this project helped you!