Adding youtube video to playlist using Python

前端 未结 3 525
小鲜肉
小鲜肉 2020-12-09 01:12

I am creating a script to upload videos to youtube using Google\'s YouTube data API version 3.
for uploading I followed the example given at https://developers.google.co

3条回答
  •  被撕碎了的回忆
    2020-12-09 01:32

    You are using the right method, for parameters:

    part: snippet (or whatever part of the playlistItem resource you want in return)

    snippet.playlistId: id of the playlist to add. you can find it through playlists.list() method if you don't know it, with setting "mine=true"

    snippet.resourceId: video id of the video. you can find it through videos.list() method if you don't know it, with setting "mine=true"

提交回复
热议问题