0

Trying to grab a list of uploads from my channel but I get the error "ChannelContentDetails has no field or method Uploads"

apiCall := youtube.Channels.List("contentDetails").Mine(true)
response, err := apiCall.Do()
if err != nil {
log.Fatalf("Error making API call: %v", err.Error())
}
fmt.Println(response.Items[0].ContentDetails.uploads)
Grokify
  • 15,092
  • 6
  • 60
  • 81
vinniyo
  • 787
  • 2
  • 8
  • 21

1 Answers1

1
response.Items[0].ContentDetails.RelatedPlaylists.Uploads

should work.

Mr.Yeah
  • 1,054
  • 2
  • 9
  • 21