Nathaniel Manista | 4f877e5 | 2015-06-15 16:44:50 +0000 | [diff] [blame] | 1 | <html><body> |
| 2 | <style> |
| 3 | |
| 4 | body, h1, h2, h3, div, span, p, pre, a { |
| 5 | margin: 0; |
| 6 | padding: 0; |
| 7 | border: 0; |
| 8 | font-weight: inherit; |
| 9 | font-style: inherit; |
| 10 | font-size: 100%; |
| 11 | font-family: inherit; |
| 12 | vertical-align: baseline; |
| 13 | } |
| 14 | |
| 15 | body { |
| 16 | font-size: 13px; |
| 17 | padding: 1em; |
| 18 | } |
| 19 | |
| 20 | h1 { |
| 21 | font-size: 26px; |
| 22 | margin-bottom: 1em; |
| 23 | } |
| 24 | |
| 25 | h2 { |
| 26 | font-size: 24px; |
| 27 | margin-bottom: 1em; |
| 28 | } |
| 29 | |
| 30 | h3 { |
| 31 | font-size: 20px; |
| 32 | margin-bottom: 1em; |
| 33 | margin-top: 1em; |
| 34 | } |
| 35 | |
| 36 | pre, code { |
| 37 | line-height: 1.5; |
| 38 | font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace; |
| 39 | } |
| 40 | |
| 41 | pre { |
| 42 | margin-top: 0.5em; |
| 43 | } |
| 44 | |
| 45 | h1, h2, h3, p { |
| 46 | font-family: Arial, sans serif; |
| 47 | } |
| 48 | |
| 49 | h1, h2, h3 { |
| 50 | border-bottom: solid #CCC 1px; |
| 51 | } |
| 52 | |
| 53 | .toc_element { |
| 54 | margin-top: 0.5em; |
| 55 | } |
| 56 | |
| 57 | .firstline { |
| 58 | margin-left: 2 em; |
| 59 | } |
| 60 | |
| 61 | .method { |
| 62 | margin-top: 1em; |
| 63 | border: solid 1px #CCC; |
| 64 | padding: 1em; |
| 65 | background: #EEE; |
| 66 | } |
| 67 | |
| 68 | .details { |
| 69 | font-weight: bold; |
| 70 | font-size: 14px; |
| 71 | } |
| 72 | |
| 73 | </style> |
| 74 | |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 75 | <h1><a href="youtube_v3.html">YouTube Data API v3</a> . <a href="youtube_v3.captions.html">captions</a></h1> |
Nathaniel Manista | 4f877e5 | 2015-06-15 16:44:50 +0000 | [diff] [blame] | 76 | <h2>Instance Methods</h2> |
| 77 | <p class="toc_element"> |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 78 | <code><a href="#delete">delete(id, onBehalfOf=None, onBehalfOfContentOwner=None, x__xgafv=None)</a></code></p> |
| 79 | <p class="firstline">Deletes a resource.</p> |
Nathaniel Manista | 4f877e5 | 2015-06-15 16:44:50 +0000 | [diff] [blame] | 80 | <p class="toc_element"> |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 81 | <code><a href="#download">download(id, tlang=None, onBehalfOf=None, onBehalfOfContentOwner=None, tfmt=None, x__xgafv=None)</a></code></p> |
| 82 | <p class="firstline">Downloads a caption track.</p> |
Nathaniel Manista | 4f877e5 | 2015-06-15 16:44:50 +0000 | [diff] [blame] | 83 | <p class="toc_element"> |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 84 | <code><a href="#download_media">download_media(id, tlang=None, onBehalfOf=None, onBehalfOfContentOwner=None, tfmt=None, x__xgafv=None)</a></code></p> |
| 85 | <p class="firstline">Downloads a caption track.</p> |
Nathaniel Manista | 4f877e5 | 2015-06-15 16:44:50 +0000 | [diff] [blame] | 86 | <p class="toc_element"> |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 87 | <code><a href="#insert">insert(part, body=None, sync=None, onBehalfOfContentOwner=None, onBehalfOf=None, x__xgafv=None, media_body=None, media_mime_type=None)</a></code></p> |
| 88 | <p class="firstline">Inserts a new resource into this collection.</p> |
Nathaniel Manista | 4f877e5 | 2015-06-15 16:44:50 +0000 | [diff] [blame] | 89 | <p class="toc_element"> |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 90 | <code><a href="#list">list(videoId, part, onBehalfOf=None, id=None, onBehalfOfContentOwner=None, x__xgafv=None)</a></code></p> |
| 91 | <p class="firstline">Retrieves a list of resources, possibly filtered.</p> |
Nathaniel Manista | 4f877e5 | 2015-06-15 16:44:50 +0000 | [diff] [blame] | 92 | <p class="toc_element"> |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 93 | <code><a href="#update">update(part, body=None, onBehalfOfContentOwner=None, onBehalfOf=None, sync=None, x__xgafv=None, media_body=None, media_mime_type=None)</a></code></p> |
| 94 | <p class="firstline">Updates an existing resource.</p> |
Nathaniel Manista | 4f877e5 | 2015-06-15 16:44:50 +0000 | [diff] [blame] | 95 | <h3>Method Details</h3> |
| 96 | <div class="method"> |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 97 | <code class="details" id="delete">delete(id, onBehalfOf=None, onBehalfOfContentOwner=None, x__xgafv=None)</code> |
| 98 | <pre>Deletes a resource. |
Nathaniel Manista | 4f877e5 | 2015-06-15 16:44:50 +0000 | [diff] [blame] | 99 | |
| 100 | Args: |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 101 | id: string, A parameter (required) |
Takashi Matsuo | 0669410 | 2015-09-11 13:55:40 -0700 | [diff] [blame] | 102 | onBehalfOf: string, ID of the Google+ Page for the channel that the request is be on behalf of |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 103 | onBehalfOfContentOwner: string, <strong>Note:</strong> This parameter is intended exclusively for YouTube |
| 104 | content partners.<br><br>The |
| 105 | <code><strong>onBehalfOfContentOwner</strong></code> parameter indicates |
| 106 | that the request's authorization credentials identify a YouTube CMS user |
| 107 | who is acting on behalf of the content owner specified in the parameter |
| 108 | value. This parameter is intended for YouTube content partners that own and |
| 109 | manage many different YouTube channels. It allows content owners to |
| 110 | authenticate once and get access to all their video and channel data, |
| 111 | without having to provide authentication credentials for each individual |
| 112 | channel. The actual CMS account that the user authenticates with must be |
| 113 | linked to the specified YouTube content owner. |
| 114 | x__xgafv: string, V1 error format. |
Nathaniel Manista | 4f877e5 | 2015-06-15 16:44:50 +0000 | [diff] [blame] | 115 | Allowed values |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 116 | 1 - v1 error format |
| 117 | 2 - v2 error format |
Nathaniel Manista | 4f877e5 | 2015-06-15 16:44:50 +0000 | [diff] [blame] | 118 | </pre> |
| 119 | </div> |
| 120 | |
| 121 | <div class="method"> |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 122 | <code class="details" id="download">download(id, tlang=None, onBehalfOf=None, onBehalfOfContentOwner=None, tfmt=None, x__xgafv=None)</code> |
| 123 | <pre>Downloads a caption track. |
Nathaniel Manista | 4f877e5 | 2015-06-15 16:44:50 +0000 | [diff] [blame] | 124 | |
| 125 | Args: |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 126 | id: string, The ID of the caption track to download, required for One Platform. (required) |
| 127 | tlang: string, tlang is the language code; machine translate the captions into |
| 128 | this language. |
Takashi Matsuo | 0669410 | 2015-09-11 13:55:40 -0700 | [diff] [blame] | 129 | onBehalfOf: string, ID of the Google+ Page for the channel that the request is be on behalf of |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 130 | onBehalfOfContentOwner: string, <strong>Note:</strong> This parameter is intended exclusively for YouTube |
| 131 | content partners.<br><br>The |
| 132 | <code><strong>onBehalfOfContentOwner</strong></code> parameter indicates |
| 133 | that the request's authorization credentials identify a YouTube CMS user |
| 134 | who is acting on behalf of the content owner specified in the parameter |
| 135 | value. This parameter is intended for YouTube content partners that own and |
| 136 | manage many different YouTube channels. It allows content owners to |
| 137 | authenticate once and get access to all their video and channel data, |
| 138 | without having to provide authentication credentials for each individual |
| 139 | channel. The actual CMS account that the user authenticates with must be |
| 140 | linked to the specified YouTube content owner. |
| 141 | tfmt: string, Convert the captions into this format. Supported options are |
| 142 | sbv, srt, and vtt. |
| 143 | x__xgafv: string, V1 error format. |
Nathaniel Manista | 4f877e5 | 2015-06-15 16:44:50 +0000 | [diff] [blame] | 144 | Allowed values |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 145 | 1 - v1 error format |
| 146 | 2 - v2 error format |
Nathaniel Manista | 4f877e5 | 2015-06-15 16:44:50 +0000 | [diff] [blame] | 147 | </pre> |
| 148 | </div> |
| 149 | |
| 150 | <div class="method"> |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 151 | <code class="details" id="download_media">download_media(id, tlang=None, onBehalfOf=None, onBehalfOfContentOwner=None, tfmt=None, x__xgafv=None)</code> |
| 152 | <pre>Downloads a caption track. |
Nathaniel Manista | 4f877e5 | 2015-06-15 16:44:50 +0000 | [diff] [blame] | 153 | |
| 154 | Args: |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 155 | id: string, The ID of the caption track to download, required for One Platform. (required) |
| 156 | tlang: string, tlang is the language code; machine translate the captions into |
| 157 | this language. |
| 158 | onBehalfOf: string, ID of the Google+ Page for the channel that the request is be on behalf of |
| 159 | onBehalfOfContentOwner: string, <strong>Note:</strong> This parameter is intended exclusively for YouTube |
| 160 | content partners.<br><br>The |
| 161 | <code><strong>onBehalfOfContentOwner</strong></code> parameter indicates |
| 162 | that the request's authorization credentials identify a YouTube CMS user |
| 163 | who is acting on behalf of the content owner specified in the parameter |
| 164 | value. This parameter is intended for YouTube content partners that own and |
| 165 | manage many different YouTube channels. It allows content owners to |
| 166 | authenticate once and get access to all their video and channel data, |
| 167 | without having to provide authentication credentials for each individual |
| 168 | channel. The actual CMS account that the user authenticates with must be |
| 169 | linked to the specified YouTube content owner. |
| 170 | tfmt: string, Convert the captions into this format. Supported options are |
| 171 | sbv, srt, and vtt. |
| 172 | x__xgafv: string, V1 error format. |
| 173 | Allowed values |
| 174 | 1 - v1 error format |
| 175 | 2 - v2 error format |
| 176 | </pre> |
| 177 | </div> |
| 178 | |
| 179 | <div class="method"> |
| 180 | <code class="details" id="insert">insert(part, body=None, sync=None, onBehalfOfContentOwner=None, onBehalfOf=None, x__xgafv=None, media_body=None, media_mime_type=None)</code> |
| 181 | <pre>Inserts a new resource into this collection. |
| 182 | |
| 183 | Args: |
| 184 | part: string, The <code><strong>part</strong></code> parameter specifies the |
| 185 | <code>caption</code> resource parts that the API response will include. Set |
| 186 | the parameter value to <code>snippet</code>. (required) (repeated) |
Nathaniel Manista | 4f877e5 | 2015-06-15 16:44:50 +0000 | [diff] [blame] | 187 | body: object, The request body. |
| 188 | The object takes the form of: |
| 189 | |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 190 | { # A <code><strong>caption</strong></code> resource represents a YouTube |
| 191 | # caption track. A caption track is associated with exactly one YouTube |
| 192 | # video. |
| 193 | "snippet": { # Basic details about a caption track, such as its language and name. # The <code>snippet</code> object contains basic details about the caption. |
| 194 | "isAutoSynced": True or False, # Indicates whether YouTube synchronized the caption track to the audio |
| 195 | # track in the video. The value will be <code>true</code> if a sync was |
| 196 | # explicitly requested when the caption track was uploaded. For example, |
| 197 | # when calling the <code>captions.insert</code> or |
| 198 | # <code>captions.update</code> methods, you can set the <code>sync</code> |
| 199 | # parameter to <code>true</code> to instruct YouTube to sync the uploaded |
| 200 | # track to the video. If the value is <code>false</code>, YouTube uses |
| 201 | # the time codes in the uploaded caption track to determine when to display |
| 202 | # captions. |
| 203 | "failureReason": "A String", # The reason that YouTube failed to process the caption track. This |
| 204 | # property is only present if the <code><a href="#state">state</a></code> |
| 205 | # property's value is <code>failed</code>. |
| 206 | "trackKind": "A String", # The caption track's type. |
| 207 | "isCC": True or False, # Indicates whether the track contains closed captions for the deaf |
| 208 | # and hard of hearing. The default value is <code>false</code>. |
| 209 | "language": "A String", # The language of the caption track. The property value is a |
| 210 | # <a href="http://www.rfc-editor.org/rfc/bcp/bcp47.txt">BCP-47</a> |
| 211 | # language tag. |
| 212 | "audioTrackType": "A String", # The type of audio track associated with the caption track. |
| 213 | "isEasyReader": True or False, # Indicates whether caption track is formatted for "easy reader," |
| 214 | # meaning it is at a third-grade level for language learners. |
| 215 | # The default value is <code>false</code>. |
| 216 | "lastUpdated": "A String", # The date and time when the caption track was last updated. The value is |
| 217 | # specified in <a href="//www.w3.org/TR/NOTE-datetime">ISO 8601</a> |
| 218 | # format. |
| 219 | "name": "A String", # The name of the caption track. The name is intended to be visible |
| 220 | # to the user as an option during playback. |
| 221 | "isLarge": True or False, # Indicates whether the caption track uses large text for the |
| 222 | # vision-impaired. The default value is <code>false</code>. |
| 223 | "status": "A String", # The caption track's status. |
| 224 | "isDraft": True or False, # Indicates whether the caption track is a draft. If the value is |
| 225 | # <code>true</code>, then the track is not publicly visible. |
| 226 | # The default value is <code>false</code>. |
| 227 | # @mutable youtube.captions.insert youtube.captions.update |
| 228 | "videoId": "A String", # The ID that YouTube uses to uniquely identify the video associated |
| 229 | # with the caption track. |
| 230 | # @mutable youtube.captions.insert |
| 231 | }, |
| 232 | "etag": "A String", # Etag of this resource. |
| 233 | "kind": "youtube#caption", # Identifies what kind of resource this is. Value: the fixed string |
| 234 | # <code>"youtube#caption"</code>. |
| 235 | "id": "A String", # The ID that YouTube uses to uniquely identify the caption track. |
| 236 | } |
Nathaniel Manista | 4f877e5 | 2015-06-15 16:44:50 +0000 | [diff] [blame] | 237 | |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 238 | sync: boolean, Extra parameter to allow automatically syncing the uploaded |
| 239 | caption/transcript with the audio. |
| 240 | onBehalfOfContentOwner: string, <strong>Note:</strong> This parameter is intended exclusively for YouTube |
| 241 | content partners.<br><br>The |
| 242 | <code><strong>onBehalfOfContentOwner</strong></code> parameter indicates |
| 243 | that the request's authorization credentials identify a YouTube CMS user |
| 244 | who is acting on behalf of the content owner specified in the parameter |
| 245 | value. This parameter is intended for YouTube content partners that own and |
| 246 | manage many different YouTube channels. It allows content owners to |
| 247 | authenticate once and get access to all their video and channel data, |
| 248 | without having to provide authentication credentials for each individual |
| 249 | channel. The actual CMS account that the user authenticates with must be |
| 250 | linked to the specified YouTube content owner. |
Nathaniel Manista | 4f877e5 | 2015-06-15 16:44:50 +0000 | [diff] [blame] | 251 | onBehalfOf: string, ID of the Google+ Page for the channel that the request is be on behalf of |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 252 | x__xgafv: string, V1 error format. |
| 253 | Allowed values |
| 254 | 1 - v1 error format |
| 255 | 2 - v2 error format |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 256 | media_body: string, The filename of the media request body, or an instance of a MediaUpload object. |
| 257 | media_mime_type: string, The MIME type of the media request body, or an instance of a MediaUpload object. |
Nathaniel Manista | 4f877e5 | 2015-06-15 16:44:50 +0000 | [diff] [blame] | 258 | |
| 259 | Returns: |
| 260 | An object of the form: |
| 261 | |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 262 | { # A <code><strong>caption</strong></code> resource represents a YouTube |
| 263 | # caption track. A caption track is associated with exactly one YouTube |
| 264 | # video. |
| 265 | "snippet": { # Basic details about a caption track, such as its language and name. # The <code>snippet</code> object contains basic details about the caption. |
| 266 | "isAutoSynced": True or False, # Indicates whether YouTube synchronized the caption track to the audio |
| 267 | # track in the video. The value will be <code>true</code> if a sync was |
| 268 | # explicitly requested when the caption track was uploaded. For example, |
| 269 | # when calling the <code>captions.insert</code> or |
| 270 | # <code>captions.update</code> methods, you can set the <code>sync</code> |
| 271 | # parameter to <code>true</code> to instruct YouTube to sync the uploaded |
| 272 | # track to the video. If the value is <code>false</code>, YouTube uses |
| 273 | # the time codes in the uploaded caption track to determine when to display |
| 274 | # captions. |
| 275 | "failureReason": "A String", # The reason that YouTube failed to process the caption track. This |
| 276 | # property is only present if the <code><a href="#state">state</a></code> |
| 277 | # property's value is <code>failed</code>. |
| 278 | "trackKind": "A String", # The caption track's type. |
| 279 | "isCC": True or False, # Indicates whether the track contains closed captions for the deaf |
| 280 | # and hard of hearing. The default value is <code>false</code>. |
| 281 | "language": "A String", # The language of the caption track. The property value is a |
| 282 | # <a href="http://www.rfc-editor.org/rfc/bcp/bcp47.txt">BCP-47</a> |
| 283 | # language tag. |
| 284 | "audioTrackType": "A String", # The type of audio track associated with the caption track. |
| 285 | "isEasyReader": True or False, # Indicates whether caption track is formatted for "easy reader," |
| 286 | # meaning it is at a third-grade level for language learners. |
| 287 | # The default value is <code>false</code>. |
| 288 | "lastUpdated": "A String", # The date and time when the caption track was last updated. The value is |
| 289 | # specified in <a href="//www.w3.org/TR/NOTE-datetime">ISO 8601</a> |
| 290 | # format. |
| 291 | "name": "A String", # The name of the caption track. The name is intended to be visible |
| 292 | # to the user as an option during playback. |
| 293 | "isLarge": True or False, # Indicates whether the caption track uses large text for the |
| 294 | # vision-impaired. The default value is <code>false</code>. |
| 295 | "status": "A String", # The caption track's status. |
| 296 | "isDraft": True or False, # Indicates whether the caption track is a draft. If the value is |
| 297 | # <code>true</code>, then the track is not publicly visible. |
| 298 | # The default value is <code>false</code>. |
| 299 | # @mutable youtube.captions.insert youtube.captions.update |
| 300 | "videoId": "A String", # The ID that YouTube uses to uniquely identify the video associated |
| 301 | # with the caption track. |
| 302 | # @mutable youtube.captions.insert |
| 303 | }, |
| 304 | "etag": "A String", # Etag of this resource. |
| 305 | "kind": "youtube#caption", # Identifies what kind of resource this is. Value: the fixed string |
| 306 | # <code>"youtube#caption"</code>. |
| 307 | "id": "A String", # The ID that YouTube uses to uniquely identify the caption track. |
| 308 | }</pre> |
Nathaniel Manista | 4f877e5 | 2015-06-15 16:44:50 +0000 | [diff] [blame] | 309 | </div> |
| 310 | |
| 311 | <div class="method"> |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 312 | <code class="details" id="list">list(videoId, part, onBehalfOf=None, id=None, onBehalfOfContentOwner=None, x__xgafv=None)</code> |
| 313 | <pre>Retrieves a list of resources, possibly filtered. |
Nathaniel Manista | 4f877e5 | 2015-06-15 16:44:50 +0000 | [diff] [blame] | 314 | |
| 315 | Args: |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 316 | videoId: string, Returns the captions for the specified video. (required) |
| 317 | part: string, The <code><strong>part</strong></code> parameter specifies a |
| 318 | comma-separated list of one or more <code>caption</code> resource parts |
| 319 | that the API response will include. The <code>part</code> names that you |
| 320 | can include in the parameter value are <code>id</code> and |
| 321 | <code>snippet</code>. (required) (repeated) |
Takashi Matsuo | 0669410 | 2015-09-11 13:55:40 -0700 | [diff] [blame] | 322 | onBehalfOf: string, ID of the Google+ Page for the channel that the request is on behalf of. |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 323 | id: string, Returns the captions with the given IDs for Stubby or Apiary. (repeated) |
| 324 | onBehalfOfContentOwner: string, <strong>Note:</strong> This parameter is intended exclusively for YouTube |
| 325 | content partners.<br><br>The |
| 326 | <code><strong>onBehalfOfContentOwner</strong></code> parameter indicates |
| 327 | that the request's authorization credentials identify a YouTube CMS user |
| 328 | who is acting on behalf of the content owner specified in the parameter |
| 329 | value. This parameter is intended for YouTube content partners that own and |
| 330 | manage many different YouTube channels. It allows content owners to |
| 331 | authenticate once and get access to all their video and channel data, |
| 332 | without having to provide authentication credentials for each individual |
| 333 | channel. The actual CMS account that the user authenticates with must be |
| 334 | linked to the specified YouTube content owner. |
| 335 | x__xgafv: string, V1 error format. |
| 336 | Allowed values |
| 337 | 1 - v1 error format |
| 338 | 2 - v2 error format |
Nathaniel Manista | 4f877e5 | 2015-06-15 16:44:50 +0000 | [diff] [blame] | 339 | |
| 340 | Returns: |
| 341 | An object of the form: |
| 342 | |
| 343 | { |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 344 | "visitorId": "A String", # The <code>visitorId</code> identifies the visitor. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 345 | "items": [ # A list of captions that match the request criteria. |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 346 | { # A <code><strong>caption</strong></code> resource represents a YouTube |
| 347 | # caption track. A caption track is associated with exactly one YouTube |
| 348 | # video. |
| 349 | "snippet": { # Basic details about a caption track, such as its language and name. # The <code>snippet</code> object contains basic details about the caption. |
| 350 | "isAutoSynced": True or False, # Indicates whether YouTube synchronized the caption track to the audio |
| 351 | # track in the video. The value will be <code>true</code> if a sync was |
| 352 | # explicitly requested when the caption track was uploaded. For example, |
| 353 | # when calling the <code>captions.insert</code> or |
| 354 | # <code>captions.update</code> methods, you can set the <code>sync</code> |
| 355 | # parameter to <code>true</code> to instruct YouTube to sync the uploaded |
| 356 | # track to the video. If the value is <code>false</code>, YouTube uses |
| 357 | # the time codes in the uploaded caption track to determine when to display |
| 358 | # captions. |
| 359 | "failureReason": "A String", # The reason that YouTube failed to process the caption track. This |
| 360 | # property is only present if the <code><a href="#state">state</a></code> |
| 361 | # property's value is <code>failed</code>. |
| 362 | "trackKind": "A String", # The caption track's type. |
| 363 | "isCC": True or False, # Indicates whether the track contains closed captions for the deaf |
| 364 | # and hard of hearing. The default value is <code>false</code>. |
| 365 | "language": "A String", # The language of the caption track. The property value is a |
| 366 | # <a href="http://www.rfc-editor.org/rfc/bcp/bcp47.txt">BCP-47</a> |
| 367 | # language tag. |
| 368 | "audioTrackType": "A String", # The type of audio track associated with the caption track. |
| 369 | "isEasyReader": True or False, # Indicates whether caption track is formatted for "easy reader," |
| 370 | # meaning it is at a third-grade level for language learners. |
| 371 | # The default value is <code>false</code>. |
| 372 | "lastUpdated": "A String", # The date and time when the caption track was last updated. The value is |
| 373 | # specified in <a href="//www.w3.org/TR/NOTE-datetime">ISO 8601</a> |
| 374 | # format. |
| 375 | "name": "A String", # The name of the caption track. The name is intended to be visible |
| 376 | # to the user as an option during playback. |
| 377 | "isLarge": True or False, # Indicates whether the caption track uses large text for the |
| 378 | # vision-impaired. The default value is <code>false</code>. |
| 379 | "status": "A String", # The caption track's status. |
| 380 | "isDraft": True or False, # Indicates whether the caption track is a draft. If the value is |
| 381 | # <code>true</code>, then the track is not publicly visible. |
| 382 | # The default value is <code>false</code>. |
| 383 | # @mutable youtube.captions.insert youtube.captions.update |
| 384 | "videoId": "A String", # The ID that YouTube uses to uniquely identify the video associated |
| 385 | # with the caption track. |
| 386 | # @mutable youtube.captions.insert |
Nathaniel Manista | 4f877e5 | 2015-06-15 16:44:50 +0000 | [diff] [blame] | 387 | }, |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 388 | "etag": "A String", # Etag of this resource. |
| 389 | "kind": "youtube#caption", # Identifies what kind of resource this is. Value: the fixed string |
| 390 | # <code>"youtube#caption"</code>. |
| 391 | "id": "A String", # The ID that YouTube uses to uniquely identify the caption track. |
| 392 | }, |
Nathaniel Manista | 4f877e5 | 2015-06-15 16:44:50 +0000 | [diff] [blame] | 393 | ], |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 394 | "etag": "A String", # Etag of this resource. |
| 395 | "kind": "youtube#captionListResponse", # Identifies what kind of resource this is. Value: the fixed string |
| 396 | # <code>"youtube#captionListResponse"</code>. |
| 397 | "eventId": "A String", # Serialized EventId of the request which produced this response. |
Nathaniel Manista | 4f877e5 | 2015-06-15 16:44:50 +0000 | [diff] [blame] | 398 | }</pre> |
| 399 | </div> |
| 400 | |
| 401 | <div class="method"> |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 402 | <code class="details" id="update">update(part, body=None, onBehalfOfContentOwner=None, onBehalfOf=None, sync=None, x__xgafv=None, media_body=None, media_mime_type=None)</code> |
| 403 | <pre>Updates an existing resource. |
Nathaniel Manista | 4f877e5 | 2015-06-15 16:44:50 +0000 | [diff] [blame] | 404 | |
| 405 | Args: |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 406 | part: string, The <code><strong>part</strong></code> parameter specifies a |
| 407 | comma-separated list of one or more <code>caption</code> resource parts |
| 408 | that the API response will include. The <code>part</code> names that you |
| 409 | can include in the parameter value are <code>id</code> and |
| 410 | <code>snippet</code>. (required) (repeated) |
Nathaniel Manista | 4f877e5 | 2015-06-15 16:44:50 +0000 | [diff] [blame] | 411 | body: object, The request body. |
| 412 | The object takes the form of: |
| 413 | |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 414 | { # A <code><strong>caption</strong></code> resource represents a YouTube |
| 415 | # caption track. A caption track is associated with exactly one YouTube |
| 416 | # video. |
| 417 | "snippet": { # Basic details about a caption track, such as its language and name. # The <code>snippet</code> object contains basic details about the caption. |
| 418 | "isAutoSynced": True or False, # Indicates whether YouTube synchronized the caption track to the audio |
| 419 | # track in the video. The value will be <code>true</code> if a sync was |
| 420 | # explicitly requested when the caption track was uploaded. For example, |
| 421 | # when calling the <code>captions.insert</code> or |
| 422 | # <code>captions.update</code> methods, you can set the <code>sync</code> |
| 423 | # parameter to <code>true</code> to instruct YouTube to sync the uploaded |
| 424 | # track to the video. If the value is <code>false</code>, YouTube uses |
| 425 | # the time codes in the uploaded caption track to determine when to display |
| 426 | # captions. |
| 427 | "failureReason": "A String", # The reason that YouTube failed to process the caption track. This |
| 428 | # property is only present if the <code><a href="#state">state</a></code> |
| 429 | # property's value is <code>failed</code>. |
| 430 | "trackKind": "A String", # The caption track's type. |
| 431 | "isCC": True or False, # Indicates whether the track contains closed captions for the deaf |
| 432 | # and hard of hearing. The default value is <code>false</code>. |
| 433 | "language": "A String", # The language of the caption track. The property value is a |
| 434 | # <a href="http://www.rfc-editor.org/rfc/bcp/bcp47.txt">BCP-47</a> |
| 435 | # language tag. |
| 436 | "audioTrackType": "A String", # The type of audio track associated with the caption track. |
| 437 | "isEasyReader": True or False, # Indicates whether caption track is formatted for "easy reader," |
| 438 | # meaning it is at a third-grade level for language learners. |
| 439 | # The default value is <code>false</code>. |
| 440 | "lastUpdated": "A String", # The date and time when the caption track was last updated. The value is |
| 441 | # specified in <a href="//www.w3.org/TR/NOTE-datetime">ISO 8601</a> |
| 442 | # format. |
| 443 | "name": "A String", # The name of the caption track. The name is intended to be visible |
| 444 | # to the user as an option during playback. |
| 445 | "isLarge": True or False, # Indicates whether the caption track uses large text for the |
| 446 | # vision-impaired. The default value is <code>false</code>. |
| 447 | "status": "A String", # The caption track's status. |
| 448 | "isDraft": True or False, # Indicates whether the caption track is a draft. If the value is |
| 449 | # <code>true</code>, then the track is not publicly visible. |
| 450 | # The default value is <code>false</code>. |
| 451 | # @mutable youtube.captions.insert youtube.captions.update |
| 452 | "videoId": "A String", # The ID that YouTube uses to uniquely identify the video associated |
| 453 | # with the caption track. |
| 454 | # @mutable youtube.captions.insert |
| 455 | }, |
| 456 | "etag": "A String", # Etag of this resource. |
| 457 | "kind": "youtube#caption", # Identifies what kind of resource this is. Value: the fixed string |
| 458 | # <code>"youtube#caption"</code>. |
| 459 | "id": "A String", # The ID that YouTube uses to uniquely identify the caption track. |
| 460 | } |
Nathaniel Manista | 4f877e5 | 2015-06-15 16:44:50 +0000 | [diff] [blame] | 461 | |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 462 | onBehalfOfContentOwner: string, <strong>Note:</strong> This parameter is intended exclusively for YouTube |
| 463 | content partners.<br><br>The |
| 464 | <code><strong>onBehalfOfContentOwner</strong></code> parameter indicates |
| 465 | that the request's authorization credentials identify a YouTube CMS user |
| 466 | who is acting on behalf of the content owner specified in the parameter |
| 467 | value. This parameter is intended for YouTube content partners that own and |
| 468 | manage many different YouTube channels. It allows content owners to |
| 469 | authenticate once and get access to all their video and channel data, |
| 470 | without having to provide authentication credentials for each individual |
| 471 | channel. The actual CMS account that the user authenticates with must be |
| 472 | linked to the specified YouTube content owner. |
| 473 | onBehalfOf: string, ID of the Google+ Page for the channel that the request is on behalf of. |
| 474 | sync: boolean, Extra parameter to allow automatically syncing the uploaded |
| 475 | caption/transcript with the audio. |
| 476 | x__xgafv: string, V1 error format. |
| 477 | Allowed values |
| 478 | 1 - v1 error format |
| 479 | 2 - v2 error format |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 480 | media_body: string, The filename of the media request body, or an instance of a MediaUpload object. |
| 481 | media_mime_type: string, The MIME type of the media request body, or an instance of a MediaUpload object. |
Nathaniel Manista | 4f877e5 | 2015-06-15 16:44:50 +0000 | [diff] [blame] | 482 | |
| 483 | Returns: |
| 484 | An object of the form: |
| 485 | |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 486 | { # A <code><strong>caption</strong></code> resource represents a YouTube |
| 487 | # caption track. A caption track is associated with exactly one YouTube |
| 488 | # video. |
| 489 | "snippet": { # Basic details about a caption track, such as its language and name. # The <code>snippet</code> object contains basic details about the caption. |
| 490 | "isAutoSynced": True or False, # Indicates whether YouTube synchronized the caption track to the audio |
| 491 | # track in the video. The value will be <code>true</code> if a sync was |
| 492 | # explicitly requested when the caption track was uploaded. For example, |
| 493 | # when calling the <code>captions.insert</code> or |
| 494 | # <code>captions.update</code> methods, you can set the <code>sync</code> |
| 495 | # parameter to <code>true</code> to instruct YouTube to sync the uploaded |
| 496 | # track to the video. If the value is <code>false</code>, YouTube uses |
| 497 | # the time codes in the uploaded caption track to determine when to display |
| 498 | # captions. |
| 499 | "failureReason": "A String", # The reason that YouTube failed to process the caption track. This |
| 500 | # property is only present if the <code><a href="#state">state</a></code> |
| 501 | # property's value is <code>failed</code>. |
| 502 | "trackKind": "A String", # The caption track's type. |
| 503 | "isCC": True or False, # Indicates whether the track contains closed captions for the deaf |
| 504 | # and hard of hearing. The default value is <code>false</code>. |
| 505 | "language": "A String", # The language of the caption track. The property value is a |
| 506 | # <a href="http://www.rfc-editor.org/rfc/bcp/bcp47.txt">BCP-47</a> |
| 507 | # language tag. |
| 508 | "audioTrackType": "A String", # The type of audio track associated with the caption track. |
| 509 | "isEasyReader": True or False, # Indicates whether caption track is formatted for "easy reader," |
| 510 | # meaning it is at a third-grade level for language learners. |
| 511 | # The default value is <code>false</code>. |
| 512 | "lastUpdated": "A String", # The date and time when the caption track was last updated. The value is |
| 513 | # specified in <a href="//www.w3.org/TR/NOTE-datetime">ISO 8601</a> |
| 514 | # format. |
| 515 | "name": "A String", # The name of the caption track. The name is intended to be visible |
| 516 | # to the user as an option during playback. |
| 517 | "isLarge": True or False, # Indicates whether the caption track uses large text for the |
| 518 | # vision-impaired. The default value is <code>false</code>. |
| 519 | "status": "A String", # The caption track's status. |
| 520 | "isDraft": True or False, # Indicates whether the caption track is a draft. If the value is |
| 521 | # <code>true</code>, then the track is not publicly visible. |
| 522 | # The default value is <code>false</code>. |
| 523 | # @mutable youtube.captions.insert youtube.captions.update |
| 524 | "videoId": "A String", # The ID that YouTube uses to uniquely identify the video associated |
| 525 | # with the caption track. |
| 526 | # @mutable youtube.captions.insert |
| 527 | }, |
| 528 | "etag": "A String", # Etag of this resource. |
| 529 | "kind": "youtube#caption", # Identifies what kind of resource this is. Value: the fixed string |
| 530 | # <code>"youtube#caption"</code>. |
| 531 | "id": "A String", # The ID that YouTube uses to uniquely identify the caption track. |
| 532 | }</pre> |
Nathaniel Manista | 4f877e5 | 2015-06-15 16:44:50 +0000 | [diff] [blame] | 533 | </div> |
| 534 | |
| 535 | </body></html> |