Learn R Programming

tuber (version 0.9.9)

upload_video: Upload Video to Youtube

Description

Upload Video to Youtube

Usage

upload_video(
  file,
  snippet = NULL,
  status = list(privacyStatus = "public"),
  query = NULL,
  open_url = FALSE,
  ...
)

Arguments

file

Filename of the video locally

snippet

Additional fields for the video, including `description` and `title`. See https://developers.google.com/youtube/v3/docs/videos#resource for other fields. Coerced to a JSON object

status

Additional fields to be put into the status input. options for `status` are `license` (which should hold: `creativeCommon`, or `youtube`), `privacyStatus`, `publicStatsViewable`, `publishAt`.

query

Fields for `query` in `POST`

open_url

Should the video be opened using browseURL

...

Additional arguments to send to tuber_POST and therefore POST

Value

A list of the response object from the POST, content, and the URL of the uploaded

Examples

Run this code
# NOT RUN {
snippet = list(
title = "Test Video",
description = "This is just a random test.",
tags = c("r language", "r programming", "data analysis")
)
status = list(privacyStatus = "private")
# }

Run the code above in your browser using DataLab