powered by
Upload Video Caption to Youtube
upload_caption( file, video_id, language = "en-US", caption_name, is_draft = FALSE, query = NULL, open_url = FALSE, ... )
Filename of the caption, probably `.srt`
YouTube Video ID. Try list_my_videos for examples.
list_my_videos
character string of `BCP47` language type. See http://www.rfc-editor.org/rfc/bcp/bcp47.txt for language specification
character vector of the name for the caption.
logical indicating whether the caption track is a draft.
Fields for `query` in `POST`
Should the video be opened using browseURL
browseURL
Additional arguments to send to POST
POST
A list of the response object from the POST, content, and the URL of the video
# NOT RUN { xx = list_my_videos() video_id = xx$contentDetails.videoId[1] video_id = as.character(video_id) language = "en-US" # }
Run the code above in your browser using DataLab