0

试图从我的频道获取上传列表,但我收到错误“ChannelContentDetails 没有字段或方法上传”

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)
4

1 回答 1

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

应该管用。

于 2015-02-10T18:34:20.543 回答