Reputation: 877
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)
Upvotes: 0
Views: 194
Reputation: 1084
response.Items[0].ContentDetails.RelatedPlaylists.Uploads
should work.
Upvotes: 1