YouTube v3 API upload to channel

前端 未结 1 1585
梦谈多话
梦谈多话 2020-12-20 15:26

I have to migrate my PHP scripts using YouTube\'s v2 API to v3.

I\'m trying this example to upload a video:

https://developers.google.com/youtube/v3/code_sam

相关标签:
1条回答
  • 2020-12-20 15:35

    As of writing, the ability to choose which channel to upload a video to is only available to YouTube content partners.

    The videos.insert method supports an optional parameter onBehalfOfContentOwnerChannel, which takes in a a YouTube channel ID value as a string. You must also provide your YouTube CMS auth credentials for the onBehalfOfContentOwner parameter as well.

    YouTube provides some explanation:

    This [onBehalfOfContentOwnerChannel] parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and perform actions on behalf of the channel specified in the parameter value, without having to provide authentication credentials for each separate channel.

    Relevant API documentation for videos.insert here.

    0 讨论(0)
提交回复
热议问题