get_captions: Get Particular Caption Track

Description Usage Arguments Value References Examples

Description

For getting captions from the v3 API, you must specify the id resource. Check list_caption_tracks for more information.

Usage

1
get_captions(id = NULL, lang = "en", format = "sbv", as_raw = TRUE, ...)

Arguments

id

String. Required. id of the caption track that is being retrieved

lang

Optional. Default is en.

format

Optional. Default is sbv.

as_raw

If FALSE the captions be converted to a character string versus a raw vector

...

Additional arguments passed to tuber_GET.

Value

String.

References

https://developers.google.com/youtube/v3/docs/captions/download

Examples

1
2
3
4
5
6
7
## Not run: 

# Set API token via yt_oauth() first

get_captions(id = "y3ElXcEME3lSISz6izkWVT5GvxjPu8pA")

## End(Not run)

tuber documentation built on July 8, 2020, 5:49 p.m.