powered by
Uploads a custom video thumbnail to YouTube and sets it for a video. Requires OAuth 2.0 authentication.
set_video_thumbnail(video_id, file)
A list containing the response from the API.
Character. ID of the video to set the thumbnail for.
Character. Path to the thumbnail image file (JPG or PNG, max 2MB).
https://developers.google.com/youtube/v3/docs/thumbnails/set
if (FALSE) { # Set API token via yt_oauth() first set_video_thumbnail(video_id = "yJXTXN4xrI8", file = "thumbnail.jpg") }
Run the code above in your browser using DataLab