mirror of
https://github.com/OMGeeky/google-apis-rs.git
synced 2026-01-25 12:44:07 +01:00
558 lines
31 KiB
HTML
558 lines
31 KiB
HTML
<!DOCTYPE html>
|
|
<html class="writer-html5" lang="en" >
|
|
<head>
|
|
<meta charset="utf-8" />
|
|
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" /><meta name="description" content="A complete library to interact with YouTube (protocol v3)" /><link rel="canonical" href="http://byron.github.io/google-apis-rs/google-youtube3-cli/" />
|
|
<link rel="shortcut icon" href="img/favicon.ico" />
|
|
<title>YouTube v5.0.4+20240303</title>
|
|
<link rel="stylesheet" href="css/theme.css" />
|
|
<link rel="stylesheet" href="css/theme_extra.css" />
|
|
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/10.5.0/styles/github.min.css" />
|
|
|
|
<script>
|
|
// Current page data
|
|
var mkdocs_page_name = "Home";
|
|
var mkdocs_page_input_path = "index.md";
|
|
var mkdocs_page_url = "/google-apis-rs/google-youtube3-cli/";
|
|
</script>
|
|
|
|
<script src="js/jquery-3.6.0.min.js" defer></script>
|
|
<!--[if lt IE 9]>
|
|
<script src="js/html5shiv.min.js"></script>
|
|
<![endif]-->
|
|
<script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/10.5.0/highlight.min.js"></script>
|
|
<script>hljs.initHighlightingOnLoad();</script>
|
|
</head>
|
|
|
|
<body class="wy-body-for-nav" role="document">
|
|
|
|
<div class="wy-grid-for-nav">
|
|
<nav data-toggle="wy-nav-shift" class="wy-nav-side stickynav">
|
|
<div class="wy-side-scroll">
|
|
<div class="wy-side-nav-search">
|
|
<a href="." class="icon icon-home"> YouTube v5.0.4+20240303
|
|
</a><div role="search">
|
|
<form id ="rtd-search-form" class="wy-form" action="./search.html" method="get">
|
|
<input type="text" name="q" placeholder="Search docs" title="Type search term here" />
|
|
</form>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="wy-menu wy-menu-vertical" data-spy="affix" role="navigation" aria-label="Navigation menu">
|
|
<ul class="current">
|
|
<li class="toctree-l1 current"><a class="reference internal current" href=".">Home</a>
|
|
<ul class="current">
|
|
</ul>
|
|
</li>
|
|
</ul>
|
|
<p class="caption"><span class="caption-text">Abuse Reports</span></p>
|
|
<ul>
|
|
<li class="toctree-l1"><a class="reference internal" href="abuse-reports_insert/">Insert</a>
|
|
</li>
|
|
</ul>
|
|
<p class="caption"><span class="caption-text">Activities</span></p>
|
|
<ul>
|
|
<li class="toctree-l1"><a class="reference internal" href="activities_list/">List</a>
|
|
</li>
|
|
</ul>
|
|
<p class="caption"><span class="caption-text">Captions</span></p>
|
|
<ul>
|
|
<li class="toctree-l1"><a class="reference internal" href="captions_delete/">Delete</a>
|
|
</li>
|
|
<li class="toctree-l1"><a class="reference internal" href="captions_download/">Download</a>
|
|
</li>
|
|
<li class="toctree-l1"><a class="reference internal" href="captions_insert/">Insert</a>
|
|
</li>
|
|
<li class="toctree-l1"><a class="reference internal" href="captions_list/">List</a>
|
|
</li>
|
|
<li class="toctree-l1"><a class="reference internal" href="captions_update/">Update</a>
|
|
</li>
|
|
</ul>
|
|
<p class="caption"><span class="caption-text">Channel Banners</span></p>
|
|
<ul>
|
|
<li class="toctree-l1"><a class="reference internal" href="channel-banners_insert/">Insert</a>
|
|
</li>
|
|
</ul>
|
|
<p class="caption"><span class="caption-text">Channel Sections</span></p>
|
|
<ul>
|
|
<li class="toctree-l1"><a class="reference internal" href="channel-sections_delete/">Delete</a>
|
|
</li>
|
|
<li class="toctree-l1"><a class="reference internal" href="channel-sections_insert/">Insert</a>
|
|
</li>
|
|
<li class="toctree-l1"><a class="reference internal" href="channel-sections_list/">List</a>
|
|
</li>
|
|
<li class="toctree-l1"><a class="reference internal" href="channel-sections_update/">Update</a>
|
|
</li>
|
|
</ul>
|
|
<p class="caption"><span class="caption-text">Channels</span></p>
|
|
<ul>
|
|
<li class="toctree-l1"><a class="reference internal" href="channels_list/">List</a>
|
|
</li>
|
|
<li class="toctree-l1"><a class="reference internal" href="channels_update/">Update</a>
|
|
</li>
|
|
</ul>
|
|
<p class="caption"><span class="caption-text">Comment Threads</span></p>
|
|
<ul>
|
|
<li class="toctree-l1"><a class="reference internal" href="comment-threads_insert/">Insert</a>
|
|
</li>
|
|
<li class="toctree-l1"><a class="reference internal" href="comment-threads_list/">List</a>
|
|
</li>
|
|
</ul>
|
|
<p class="caption"><span class="caption-text">Comments</span></p>
|
|
<ul>
|
|
<li class="toctree-l1"><a class="reference internal" href="comments_delete/">Delete</a>
|
|
</li>
|
|
<li class="toctree-l1"><a class="reference internal" href="comments_insert/">Insert</a>
|
|
</li>
|
|
<li class="toctree-l1"><a class="reference internal" href="comments_list/">List</a>
|
|
</li>
|
|
<li class="toctree-l1"><a class="reference internal" href="comments_mark-as-spam/">Mark As Spam</a>
|
|
</li>
|
|
<li class="toctree-l1"><a class="reference internal" href="comments_set-moderation-status/">Set Moderation Status</a>
|
|
</li>
|
|
<li class="toctree-l1"><a class="reference internal" href="comments_update/">Update</a>
|
|
</li>
|
|
</ul>
|
|
<p class="caption"><span class="caption-text">I18n Languages</span></p>
|
|
<ul>
|
|
<li class="toctree-l1"><a class="reference internal" href="i18n-languages_list/">List</a>
|
|
</li>
|
|
</ul>
|
|
<p class="caption"><span class="caption-text">I18n Regions</span></p>
|
|
<ul>
|
|
<li class="toctree-l1"><a class="reference internal" href="i18n-regions_list/">List</a>
|
|
</li>
|
|
</ul>
|
|
<p class="caption"><span class="caption-text">Live Broadcasts</span></p>
|
|
<ul>
|
|
<li class="toctree-l1"><a class="reference internal" href="live-broadcasts_bind/">Bind</a>
|
|
</li>
|
|
<li class="toctree-l1"><a class="reference internal" href="live-broadcasts_delete/">Delete</a>
|
|
</li>
|
|
<li class="toctree-l1"><a class="reference internal" href="live-broadcasts_insert/">Insert</a>
|
|
</li>
|
|
<li class="toctree-l1"><a class="reference internal" href="live-broadcasts_insert-cuepoint/">Insert Cuepoint</a>
|
|
</li>
|
|
<li class="toctree-l1"><a class="reference internal" href="live-broadcasts_list/">List</a>
|
|
</li>
|
|
<li class="toctree-l1"><a class="reference internal" href="live-broadcasts_transition/">Transition</a>
|
|
</li>
|
|
<li class="toctree-l1"><a class="reference internal" href="live-broadcasts_update/">Update</a>
|
|
</li>
|
|
</ul>
|
|
<p class="caption"><span class="caption-text">Live Chat Bans</span></p>
|
|
<ul>
|
|
<li class="toctree-l1"><a class="reference internal" href="live-chat-bans_delete/">Delete</a>
|
|
</li>
|
|
<li class="toctree-l1"><a class="reference internal" href="live-chat-bans_insert/">Insert</a>
|
|
</li>
|
|
</ul>
|
|
<p class="caption"><span class="caption-text">Live Chat Messages</span></p>
|
|
<ul>
|
|
<li class="toctree-l1"><a class="reference internal" href="live-chat-messages_delete/">Delete</a>
|
|
</li>
|
|
<li class="toctree-l1"><a class="reference internal" href="live-chat-messages_insert/">Insert</a>
|
|
</li>
|
|
<li class="toctree-l1"><a class="reference internal" href="live-chat-messages_list/">List</a>
|
|
</li>
|
|
</ul>
|
|
<p class="caption"><span class="caption-text">Live Chat Moderators</span></p>
|
|
<ul>
|
|
<li class="toctree-l1"><a class="reference internal" href="live-chat-moderators_delete/">Delete</a>
|
|
</li>
|
|
<li class="toctree-l1"><a class="reference internal" href="live-chat-moderators_insert/">Insert</a>
|
|
</li>
|
|
<li class="toctree-l1"><a class="reference internal" href="live-chat-moderators_list/">List</a>
|
|
</li>
|
|
</ul>
|
|
<p class="caption"><span class="caption-text">Live Streams</span></p>
|
|
<ul>
|
|
<li class="toctree-l1"><a class="reference internal" href="live-streams_delete/">Delete</a>
|
|
</li>
|
|
<li class="toctree-l1"><a class="reference internal" href="live-streams_insert/">Insert</a>
|
|
</li>
|
|
<li class="toctree-l1"><a class="reference internal" href="live-streams_list/">List</a>
|
|
</li>
|
|
<li class="toctree-l1"><a class="reference internal" href="live-streams_update/">Update</a>
|
|
</li>
|
|
</ul>
|
|
<p class="caption"><span class="caption-text">Members</span></p>
|
|
<ul>
|
|
<li class="toctree-l1"><a class="reference internal" href="members_list/">List</a>
|
|
</li>
|
|
</ul>
|
|
<p class="caption"><span class="caption-text">Memberships Levels</span></p>
|
|
<ul>
|
|
<li class="toctree-l1"><a class="reference internal" href="memberships-levels_list/">List</a>
|
|
</li>
|
|
</ul>
|
|
<p class="caption"><span class="caption-text">Playlist Images</span></p>
|
|
<ul>
|
|
<li class="toctree-l1"><a class="reference internal" href="playlist-images_delete/">Delete</a>
|
|
</li>
|
|
<li class="toctree-l1"><a class="reference internal" href="playlist-images_insert/">Insert</a>
|
|
</li>
|
|
<li class="toctree-l1"><a class="reference internal" href="playlist-images_list/">List</a>
|
|
</li>
|
|
<li class="toctree-l1"><a class="reference internal" href="playlist-images_update/">Update</a>
|
|
</li>
|
|
</ul>
|
|
<p class="caption"><span class="caption-text">Playlist Items</span></p>
|
|
<ul>
|
|
<li class="toctree-l1"><a class="reference internal" href="playlist-items_delete/">Delete</a>
|
|
</li>
|
|
<li class="toctree-l1"><a class="reference internal" href="playlist-items_insert/">Insert</a>
|
|
</li>
|
|
<li class="toctree-l1"><a class="reference internal" href="playlist-items_list/">List</a>
|
|
</li>
|
|
<li class="toctree-l1"><a class="reference internal" href="playlist-items_update/">Update</a>
|
|
</li>
|
|
</ul>
|
|
<p class="caption"><span class="caption-text">Playlists</span></p>
|
|
<ul>
|
|
<li class="toctree-l1"><a class="reference internal" href="playlists_delete/">Delete</a>
|
|
</li>
|
|
<li class="toctree-l1"><a class="reference internal" href="playlists_insert/">Insert</a>
|
|
</li>
|
|
<li class="toctree-l1"><a class="reference internal" href="playlists_list/">List</a>
|
|
</li>
|
|
<li class="toctree-l1"><a class="reference internal" href="playlists_update/">Update</a>
|
|
</li>
|
|
</ul>
|
|
<p class="caption"><span class="caption-text">Search</span></p>
|
|
<ul>
|
|
<li class="toctree-l1"><a class="reference internal" href="search_list/">List</a>
|
|
</li>
|
|
</ul>
|
|
<p class="caption"><span class="caption-text">Subscriptions</span></p>
|
|
<ul>
|
|
<li class="toctree-l1"><a class="reference internal" href="subscriptions_delete/">Delete</a>
|
|
</li>
|
|
<li class="toctree-l1"><a class="reference internal" href="subscriptions_insert/">Insert</a>
|
|
</li>
|
|
<li class="toctree-l1"><a class="reference internal" href="subscriptions_list/">List</a>
|
|
</li>
|
|
</ul>
|
|
<p class="caption"><span class="caption-text">Super Chat Events</span></p>
|
|
<ul>
|
|
<li class="toctree-l1"><a class="reference internal" href="super-chat-events_list/">List</a>
|
|
</li>
|
|
</ul>
|
|
<p class="caption"><span class="caption-text">Tests</span></p>
|
|
<ul>
|
|
<li class="toctree-l1"><a class="reference internal" href="tests_insert/">Insert</a>
|
|
</li>
|
|
</ul>
|
|
<p class="caption"><span class="caption-text">Third Party Links</span></p>
|
|
<ul>
|
|
<li class="toctree-l1"><a class="reference internal" href="third-party-links_delete/">Delete</a>
|
|
</li>
|
|
<li class="toctree-l1"><a class="reference internal" href="third-party-links_insert/">Insert</a>
|
|
</li>
|
|
<li class="toctree-l1"><a class="reference internal" href="third-party-links_list/">List</a>
|
|
</li>
|
|
<li class="toctree-l1"><a class="reference internal" href="third-party-links_update/">Update</a>
|
|
</li>
|
|
</ul>
|
|
<p class="caption"><span class="caption-text">Thumbnails</span></p>
|
|
<ul>
|
|
<li class="toctree-l1"><a class="reference internal" href="thumbnails_set/">Set</a>
|
|
</li>
|
|
</ul>
|
|
<p class="caption"><span class="caption-text">Video Abuse Report Reasons</span></p>
|
|
<ul>
|
|
<li class="toctree-l1"><a class="reference internal" href="video-abuse-report-reasons_list/">List</a>
|
|
</li>
|
|
</ul>
|
|
<p class="caption"><span class="caption-text">Video Categories</span></p>
|
|
<ul>
|
|
<li class="toctree-l1"><a class="reference internal" href="video-categories_list/">List</a>
|
|
</li>
|
|
</ul>
|
|
<p class="caption"><span class="caption-text">Videos</span></p>
|
|
<ul>
|
|
<li class="toctree-l1"><a class="reference internal" href="videos_delete/">Delete</a>
|
|
</li>
|
|
<li class="toctree-l1"><a class="reference internal" href="videos_get-rating/">Get Rating</a>
|
|
</li>
|
|
<li class="toctree-l1"><a class="reference internal" href="videos_insert/">Insert</a>
|
|
</li>
|
|
<li class="toctree-l1"><a class="reference internal" href="videos_list/">List</a>
|
|
</li>
|
|
<li class="toctree-l1"><a class="reference internal" href="videos_rate/">Rate</a>
|
|
</li>
|
|
<li class="toctree-l1"><a class="reference internal" href="videos_report-abuse/">Report Abuse</a>
|
|
</li>
|
|
<li class="toctree-l1"><a class="reference internal" href="videos_update/">Update</a>
|
|
</li>
|
|
</ul>
|
|
<p class="caption"><span class="caption-text">Watermarks</span></p>
|
|
<ul>
|
|
<li class="toctree-l1"><a class="reference internal" href="watermarks_set/">Set</a>
|
|
</li>
|
|
<li class="toctree-l1"><a class="reference internal" href="watermarks_unset/">Unset</a>
|
|
</li>
|
|
</ul>
|
|
<p class="caption"><span class="caption-text">Youtube</span></p>
|
|
<ul>
|
|
<li class="toctree-l1"><a class="reference internal" href="youtube_v3-update-comment-threads/">V3 Update Comment Threads</a>
|
|
</li>
|
|
</ul>
|
|
</div>
|
|
</div>
|
|
</nav>
|
|
|
|
<section data-toggle="wy-nav-shift" class="wy-nav-content-wrap">
|
|
<nav class="wy-nav-top" role="navigation" aria-label="Mobile navigation menu">
|
|
<i data-toggle="wy-nav-top" class="fa fa-bars"></i>
|
|
<a href=".">YouTube v5.0.4+20240303</a>
|
|
|
|
</nav>
|
|
<div class="wy-nav-content">
|
|
<div class="rst-content"><div role="navigation" aria-label="breadcrumbs navigation">
|
|
<ul class="wy-breadcrumbs">
|
|
<li><a href="." class="icon icon-home" alt="Docs"></a> »</li>
|
|
<li>Home</li>
|
|
<li class="wy-breadcrumbs-aside">
|
|
<a href="https://github.com/Byron/google-apis-rs/tree/main/gen/youtube3-cli/edit/master/docs/index.md"
|
|
class="icon icon-github"> Edit on GitHub</a>
|
|
</li>
|
|
</ul>
|
|
<hr/>
|
|
</div>
|
|
<div role="main" class="document" itemscope="itemscope" itemtype="http://schema.org/Article">
|
|
<div class="section" itemprop="articleBody">
|
|
|
|
<!---
|
|
DO NOT EDIT !
|
|
This file was generated automatically from 'src/generator/templates/cli/README.md.mako'
|
|
DO NOT EDIT !
|
|
-->
|
|
<p>The <code>youtube3</code> command-line interface <em>(CLI)</em> allows to use most features of the <em>Google YouTube</em> service from the comfort of your terminal.</p>
|
|
<p>By default all output is printed to standard out, but flags can be set to direct it into a file independent of your shell's
|
|
capabilities. Errors will be printed to standard error, and cause the program's exit code to be non-zero.</p>
|
|
<p>If data-structures are requested, these will be returned as pretty-printed JSON, to be useful as input to other tools.</p>
|
|
<p>Everything else about the <em>YouTube</em> API can be found at the
|
|
<a href="https://developers.google.com/youtube/">official documentation site</a>.</p>
|
|
<h1 id="installation-and-source-code">Installation and Source Code</h1>
|
|
<p>Install the command-line interface with cargo using:</p>
|
|
<pre><code class="language-bash">cargo install google-youtube3-cli
|
|
</code></pre>
|
|
<p>Find the source code <a href="https://github.com/Byron/google-apis-rs/tree/main/gen/youtube3-cli">on github</a>.</p>
|
|
<h1 id="usage">Usage</h1>
|
|
<p>This documentation was generated from the <em>YouTube</em> API at revision <em>20240303</em>. The CLI is at version <em>5.0.4</em>.</p>
|
|
<pre><code class="language-bash">youtube3 [options]
|
|
abuse-reports
|
|
insert (-r <kv>)... [-p <v>]... [-o <out>]
|
|
activities
|
|
list <part>... [-p <v>]... [-o <out>]
|
|
captions
|
|
delete <id> [-p <v>]...
|
|
download <id> [-p <v>]... [-o <out>]
|
|
insert (-r <kv>)... (-u simple -f <file> [-m <mime>]) [-p <v>]... [-o <out>]
|
|
list <part>... <video-id> [-p <v>]... [-o <out>]
|
|
update (-r <kv>)... (-u simple -f <file> [-m <mime>]) [-p <v>]... [-o <out>]
|
|
channel-banners
|
|
insert (-r <kv>)... (-u simple -f <file> [-m <mime>]) [-p <v>]... [-o <out>]
|
|
channel-sections
|
|
delete <id> [-p <v>]...
|
|
insert (-r <kv>)... [-p <v>]... [-o <out>]
|
|
list <part>... [-p <v>]... [-o <out>]
|
|
update (-r <kv>)... [-p <v>]... [-o <out>]
|
|
channels
|
|
list <part>... [-p <v>]... [-o <out>]
|
|
update (-r <kv>)... [-p <v>]... [-o <out>]
|
|
comment-threads
|
|
insert (-r <kv>)... [-p <v>]... [-o <out>]
|
|
list <part>... [-p <v>]... [-o <out>]
|
|
comments
|
|
delete <id> [-p <v>]...
|
|
insert (-r <kv>)... [-p <v>]... [-o <out>]
|
|
list <part>... [-p <v>]... [-o <out>]
|
|
mark-as-spam <id>... [-p <v>]...
|
|
set-moderation-status <id>... <moderation-status> [-p <v>]...
|
|
update (-r <kv>)... [-p <v>]... [-o <out>]
|
|
i18n-languages
|
|
list <part>... [-p <v>]... [-o <out>]
|
|
i18n-regions
|
|
list <part>... [-p <v>]... [-o <out>]
|
|
live-broadcasts
|
|
bind <id> <part>... [-p <v>]... [-o <out>]
|
|
delete <id> [-p <v>]...
|
|
insert (-r <kv>)... [-p <v>]... [-o <out>]
|
|
insert-cuepoint (-r <kv>)... [-p <v>]... [-o <out>]
|
|
list <part>... [-p <v>]... [-o <out>]
|
|
transition <broadcast-status> <id> <part>... [-p <v>]... [-o <out>]
|
|
update (-r <kv>)... [-p <v>]... [-o <out>]
|
|
live-chat-bans
|
|
delete <id> [-p <v>]...
|
|
insert (-r <kv>)... [-p <v>]... [-o <out>]
|
|
live-chat-messages
|
|
delete <id> [-p <v>]...
|
|
insert (-r <kv>)... [-p <v>]... [-o <out>]
|
|
list <live-chat-id> <part>... [-p <v>]... [-o <out>]
|
|
live-chat-moderators
|
|
delete <id> [-p <v>]...
|
|
insert (-r <kv>)... [-p <v>]... [-o <out>]
|
|
list <live-chat-id> <part>... [-p <v>]... [-o <out>]
|
|
live-streams
|
|
delete <id> [-p <v>]...
|
|
insert (-r <kv>)... [-p <v>]... [-o <out>]
|
|
list <part>... [-p <v>]... [-o <out>]
|
|
update (-r <kv>)... [-p <v>]... [-o <out>]
|
|
members
|
|
list <part>... [-p <v>]... [-o <out>]
|
|
memberships-levels
|
|
list <part>... [-p <v>]... [-o <out>]
|
|
playlist-images
|
|
delete [-p <v>]...
|
|
insert (-r <kv>)... (-u simple -f <file> [-m <mime>]) [-p <v>]... [-o <out>]
|
|
list [-p <v>]... [-o <out>]
|
|
update (-r <kv>)... (-u simple -f <file> [-m <mime>]) [-p <v>]... [-o <out>]
|
|
playlist-items
|
|
delete <id> [-p <v>]...
|
|
insert (-r <kv>)... [-p <v>]... [-o <out>]
|
|
list <part>... [-p <v>]... [-o <out>]
|
|
update (-r <kv>)... [-p <v>]... [-o <out>]
|
|
playlists
|
|
delete <id> [-p <v>]...
|
|
insert (-r <kv>)... [-p <v>]... [-o <out>]
|
|
list <part>... [-p <v>]... [-o <out>]
|
|
update (-r <kv>)... [-p <v>]... [-o <out>]
|
|
search
|
|
list <part>... [-p <v>]... [-o <out>]
|
|
subscriptions
|
|
delete <id> [-p <v>]...
|
|
insert (-r <kv>)... [-p <v>]... [-o <out>]
|
|
list <part>... [-p <v>]... [-o <out>]
|
|
super-chat-events
|
|
list <part>... [-p <v>]... [-o <out>]
|
|
tests
|
|
insert (-r <kv>)... [-p <v>]... [-o <out>]
|
|
third-party-links
|
|
delete <linking-token> <type> [-p <v>]...
|
|
insert (-r <kv>)... [-p <v>]... [-o <out>]
|
|
list <part>... [-p <v>]... [-o <out>]
|
|
update (-r <kv>)... [-p <v>]... [-o <out>]
|
|
thumbnails
|
|
set <video-id> (-u simple -f <file> [-m <mime>]) [-p <v>]... [-o <out>]
|
|
video-abuse-report-reasons
|
|
list <part>... [-p <v>]... [-o <out>]
|
|
video-categories
|
|
list <part>... [-p <v>]... [-o <out>]
|
|
videos
|
|
delete <id> [-p <v>]...
|
|
get-rating <id>... [-p <v>]... [-o <out>]
|
|
insert (-r <kv>)... (-u simple -f <file> [-m <mime>]) [-p <v>]... [-o <out>]
|
|
list <part>... [-p <v>]... [-o <out>]
|
|
rate <id> <rating> [-p <v>]...
|
|
report-abuse (-r <kv>)... [-p <v>]...
|
|
update (-r <kv>)... [-p <v>]... [-o <out>]
|
|
watermarks
|
|
set <channel-id> (-r <kv>)... (-u simple -f <file> [-m <mime>]) [-p <v>]...
|
|
unset <channel-id> [-p <v>]...
|
|
youtube
|
|
v3-update-comment-threads (-r <kv>)... [-p <v>]... [-o <out>]
|
|
youtube3 --help
|
|
|
|
Configuration:
|
|
[--scope <url>]...
|
|
Specify the authentication a method should be executed in. Each scope
|
|
requires the user to grant this application permission to use it.
|
|
If unset, it defaults to the shortest scope url for a particular method.
|
|
--config-dir <folder>
|
|
A directory into which we will store our persistent data. Defaults to
|
|
a user-writable directory that we will create during the first invocation.
|
|
[default: ~/.google-service-cli]
|
|
|
|
</code></pre>
|
|
<h1 id="configuration">Configuration</h1>
|
|
<p>The program will store all persistent data in the <code>~/.google-service-cli</code> directory in <em>JSON</em> files prefixed with <code>youtube3-</code>. You can change the directory used to store configuration with the <code>--config-dir</code> flag on a per-invocation basis.</p>
|
|
<p>More information about the various kinds of persistent data are given in the following paragraphs.</p>
|
|
<h1 id="authentication">Authentication</h1>
|
|
<p>Most APIs require a user to authenticate any request. If this is the case, the <a href="https://developers.google.com/+/api/oauth#scopes">scope</a> determines the
|
|
set of permissions granted. The granularity of these is usually no more than <em>read-only</em> or <em>full-access</em>.</p>
|
|
<p>If not set, the system will automatically select the smallest feasible scope, e.g. when invoking a
|
|
method that is read-only, it will ask only for a read-only scope.
|
|
You may use the <code>--scope</code> flag to specify a scope directly.
|
|
All applicable scopes are documented in the respective method's CLI documentation.</p>
|
|
<p>The first time a scope is used, the user is asked for permission. Follow the instructions given
|
|
by the CLI to grant permissions, or to decline.</p>
|
|
<p>If a scope was authenticated by the user, the respective information will be stored as <em>JSON</em> in the configuration
|
|
directory, e.g. <code>~/.google-service-cli/youtube3-token-<scope-hash>.json</code>. No manual management of these tokens
|
|
is necessary.</p>
|
|
<p>To revoke granted authentication, please refer to the <a href="http://webapps.stackexchange.com/a/30849">official documentation</a>.</p>
|
|
<h1 id="application-secrets">Application Secrets</h1>
|
|
<p>In order to allow any application to use Google services, it will need to be registered using the
|
|
<a href="https://console.developers.google.com/">Google Developer Console</a>. APIs the application may use are then enabled for it
|
|
one by one. Most APIs can be used for free and have a daily quota.</p>
|
|
<p>To allow more comfortable usage of the CLI without forcing anyone to register an own application, the CLI
|
|
comes with a default application secret that is configured accordingly. This also means that heavy usage
|
|
all around the world may deplete the daily quota.</p>
|
|
<p>You can workaround this limitation by putting your own secrets file at this location:
|
|
<code>~/.google-service-cli/youtube3-secret.json</code>, assuming that the required <em>youtube</em> API
|
|
was enabled for it. Such a secret file can be downloaded in the <em>Google Developer Console</em> at
|
|
<em>APIs & auth -> Credentials -> Download JSON</em> and used as is.</p>
|
|
<p>Learn more about how to setup Google projects and enable APIs using the <a href="https://developers.google.com/console/help/new/">official documentation</a>.</p>
|
|
<h1 id="debugging">Debugging</h1>
|
|
<p>Even though the CLI does its best to provide usable error messages, sometimes it might be desirable to know
|
|
what exactly led to a particular issue. This is done by allowing all client-server communication to be
|
|
output to standard error <em>as-is</em>.</p>
|
|
<p>The <code>--debug</code> flag will print errors using the <code>Debug</code> representation to standard error.</p>
|
|
<p>You may consider redirecting standard error into a file for ease of use, e.g. <code>youtube3 --debug <resource> <method> [options] 2>debug.txt</code>.</p>
|
|
|
|
</div>
|
|
</div><footer>
|
|
<div class="rst-footer-buttons" role="navigation" aria-label="Footer Navigation">
|
|
<a href="abuse-reports_insert/" class="btn btn-neutral float-right" title="Insert">Next <span class="icon icon-circle-arrow-right"></span></a>
|
|
</div>
|
|
|
|
<hr/>
|
|
|
|
<div role="contentinfo">
|
|
<!-- Copyright etc -->
|
|
<p>Copyright © 2015-2020, `Sebastian Thiel`</p>
|
|
</div>
|
|
|
|
Built with <a href="https://www.mkdocs.org/">MkDocs</a> using a <a href="https://github.com/readthedocs/sphinx_rtd_theme">theme</a> provided by <a href="https://readthedocs.org">Read the Docs</a>.
|
|
</footer>
|
|
|
|
</div>
|
|
</div>
|
|
|
|
</section>
|
|
|
|
</div>
|
|
|
|
<div class="rst-versions" role="note" aria-label="Versions">
|
|
<span class="rst-current-version" data-toggle="rst-current-version">
|
|
|
|
<span>
|
|
<a href="https://github.com/Byron/google-apis-rs/tree/main/gen/youtube3-cli" class="fa fa-github" style="color: #fcfcfc"> GitHub</a>
|
|
</span>
|
|
|
|
|
|
|
|
<span><a href="abuse-reports_insert/" style="color: #fcfcfc">Next »</a></span>
|
|
|
|
</span>
|
|
</div>
|
|
<script>var base_url = '.';</script>
|
|
<script src="js/theme_extra.js" defer></script>
|
|
<script src="js/theme.js" defer></script>
|
|
<script src="search/main.js" defer></script>
|
|
<script defer>
|
|
window.onload = function () {
|
|
SphinxRtdTheme.Navigation.enable(true);
|
|
};
|
|
</script>
|
|
|
|
</body>
|
|
</html>
|
|
|
|
<!--
|
|
MkDocs version : 1.3.1
|
|
Build Date UTC : 2024-03-05 20:05:59.875572+00:00
|
|
-->
|