powered by
Posts a new top-level comment on a YouTube video or channel. Requires OAuth 2.0 authentication.
post_comment(video_id = NULL, channel_id = NULL, text, ...)
A list containing the API response.
Character. ID of the video to comment on. Either `video_id` or `channel_id` must be provided.
Character. ID of the channel to comment on.
Character. The text of the comment.
Additional arguments passed to tuber_POST_json.
tuber_POST_json
https://developers.google.com/youtube/v3/docs/commentThreads/insert
if (FALSE) { # Set API token via yt_oauth() first post_comment(video_id = "yJXTXN4xrI8", text = "Great video!") }
Run the code above in your browser using DataLab