Upload Video to Specific Playlist in youtube

前端 未结 1 1048
野趣味
野趣味 2020-12-22 04:44

I want upload video to specific Playlist in youtube.I have One playlist in my channel but when i upload video it uploads in channel not in playlist

相关标签:
1条回答
  • 2020-12-22 05:38

    Yes, it is correct. When uploading video it will redirect to your channel. You cannot upload video directly into a playlist. From channel, you can put video in eplaylist. To do that you have to execute 2(two) steps listed below:

    Step 1: Retrieve the appropriate playlist ID

    Call the playlist.list method to retrieve the playlists in the currently authenticated user's channel. The sample request above for retrieving the current user's playlists demonstrates this request. The application calling the API could process the API response to display a list of playlists, using each playlist's ID as a key.

    Step 2: Add a video to the playlist

    Call the playlistItems.insert method to add a video to the playlist. This request must be authorized using OAuth 2.0. The request body is a playlistItem resource that specifies at least the following values:

    The snippet.playlistId identifies the playlist to which you are adding the favorite video. This is the playlist ID you obtained in step 1. The snippet.resourceId.kind contains the value youtube#video. The snippet.resourceId.videoId identifies the video that you are adding as a favorite. The property value is a unique YouTube video ID.

    To complete the request in the APIs Explorer, you need to set values for the snippet.playlistId and snippet.resourceId.videoId properties. https://developers.google.com/apis-explorer/#p/youtube/v3/youtube.playlistItems.insert?part=snippet

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