Learn R Programming

tuber (version 3.0.0)

tuber_upload_session: Open a resumable media upload session

Description

YouTube's resumable protocol is two requests: a metadata POST that returns a session URL in the Location header, then a PUT of the bytes to that URL. This is the first half.

Usage

tuber_upload_session(path, query, metadata, file, type)

Value

The session URL as a string

Arguments

path

API endpoint path under upload/youtube/v3

query

query list

metadata

list serialized as the JSON metadata body

file

path to the file that will be uploaded

type

MIME type of file