John Asmuth | 614db98 | 2014-04-24 15:46:26 -0400 | [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.channelSections.html">channelSections</a></h1> |
John Asmuth | 614db98 | 2014-04-24 15:46:26 -0400 | [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, onBehalfOfContentOwner=None, x__xgafv=None)</a></code></p> |
| 79 | <p class="firstline">Deletes a resource.</p> |
John Asmuth | 614db98 | 2014-04-24 15:46:26 -0400 | [diff] [blame] | 80 | <p class="toc_element"> |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 81 | <code><a href="#insert">insert(part, body=None, onBehalfOfContentOwnerChannel=None, onBehalfOfContentOwner=None, x__xgafv=None)</a></code></p> |
| 82 | <p class="firstline">Inserts a new resource into this collection.</p> |
John Asmuth | 614db98 | 2014-04-24 15:46:26 -0400 | [diff] [blame] | 83 | <p class="toc_element"> |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 84 | <code><a href="#list">list(part, mine=None, channelId=None, onBehalfOfContentOwner=None, hl=None, id=None, x__xgafv=None)</a></code></p> |
| 85 | <p class="firstline">Retrieves a list of resources, possibly filtered.</p> |
John Asmuth | 614db98 | 2014-04-24 15:46:26 -0400 | [diff] [blame] | 86 | <p class="toc_element"> |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 87 | <code><a href="#update">update(part, body=None, onBehalfOfContentOwner=None, x__xgafv=None)</a></code></p> |
| 88 | <p class="firstline">Updates an existing resource.</p> |
John Asmuth | 614db98 | 2014-04-24 15:46:26 -0400 | [diff] [blame] | 89 | <h3>Method Details</h3> |
| 90 | <div class="method"> |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 91 | <code class="details" id="delete">delete(id, onBehalfOfContentOwner=None, x__xgafv=None)</code> |
| 92 | <pre>Deletes a resource. |
John Asmuth | 614db98 | 2014-04-24 15:46:26 -0400 | [diff] [blame] | 93 | |
| 94 | Args: |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 95 | id: string, A parameter (required) |
| 96 | onBehalfOfContentOwner: string, <strong>Note:</strong> This parameter is intended exclusively for YouTube |
| 97 | content partners.<br><br>The |
| 98 | <code><strong>onBehalfOfContentOwner</strong></code> parameter indicates |
| 99 | that the |
| 100 | request's authorization credentials identify a YouTube CMS user who is |
| 101 | acting on behalf of the content owner specified in the parameter value. |
| 102 | This parameter is intended for YouTube content partners that own and manage |
| 103 | many different YouTube channels. It allows content owners to authenticate |
| 104 | once and get access to all their video and channel data, without having to |
| 105 | provide authentication credentials for each individual channel. The CMS |
| 106 | account that the user authenticates with must be linked to the specified |
| 107 | YouTube content owner. |
| 108 | x__xgafv: string, V1 error format. |
| 109 | Allowed values |
| 110 | 1 - v1 error format |
| 111 | 2 - v2 error format |
John Asmuth | 614db98 | 2014-04-24 15:46:26 -0400 | [diff] [blame] | 112 | </pre> |
| 113 | </div> |
| 114 | |
| 115 | <div class="method"> |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 116 | <code class="details" id="insert">insert(part, body=None, onBehalfOfContentOwnerChannel=None, onBehalfOfContentOwner=None, x__xgafv=None)</code> |
| 117 | <pre>Inserts a new resource into this collection. |
John Asmuth | 614db98 | 2014-04-24 15:46:26 -0400 | [diff] [blame] | 118 | |
| 119 | Args: |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 120 | part: string, The <code><strong>part</strong></code> parameter serves two purposes in |
| 121 | this operation. It identifies the properties that the write operation will |
| 122 | set as well as the properties that the API response will |
| 123 | include.<br/><br/>The <code>part</code> names that you can include in the |
| 124 | parameter value are <code>snippet</code> and <code>contentDetails</code>. (required) (repeated) |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame] | 125 | body: object, The request body. |
John Asmuth | 614db98 | 2014-04-24 15:46:26 -0400 | [diff] [blame] | 126 | The object takes the form of: |
| 127 | |
Craig Citro | e633be1 | 2015-03-02 13:40:36 -0800 | [diff] [blame] | 128 | { |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 129 | "etag": "A String", # Etag of this resource. |
| 130 | "contentDetails": { # Details about a channelsection, including playlists and channels. # The <code>contentDetails</code> object contains details about the channel |
| 131 | # section content, such as a list of playlists or channels featured in the |
| 132 | # section. |
| 133 | "playlists": [ # The playlist ids for type single_playlist and multiple_playlists. For |
| 134 | # singlePlaylist, only one playlistId is allowed. |
| 135 | "A String", |
| 136 | ], |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 137 | "channels": [ # The channel ids for type multiple_channels. |
| 138 | "A String", |
Nathaniel Manista | 4f877e5 | 2015-06-15 16:44:50 +0000 | [diff] [blame] | 139 | ], |
Nathaniel Manista | 4f877e5 | 2015-06-15 16:44:50 +0000 | [diff] [blame] | 140 | }, |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 141 | "localizations": { # Localizations for different languages |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 142 | "a_key": { # ChannelSection localization setting |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 143 | "title": "A String", # The localized strings for channel section's title. |
Craig Citro | e633be1 | 2015-03-02 13:40:36 -0800 | [diff] [blame] | 144 | }, |
| 145 | }, |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 146 | "kind": "youtube#channelSection", # Identifies what kind of resource this is. Value: the fixed string |
| 147 | # <code>"youtube#channelSection"</code>. |
| 148 | "targeting": { # ChannelSection targeting setting. # The <code>targeting</code> object contains basic targeting settings about |
| 149 | # the channel section. |
| 150 | "languages": [ # The language the channel section is targeting. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 151 | "A String", |
| 152 | ], |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 153 | "countries": [ # The country the channel section is targeting. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 154 | "A String", |
| 155 | ], |
| 156 | "regions": [ # The region the channel section is targeting. |
| 157 | "A String", |
| 158 | ], |
Craig Citro | e633be1 | 2015-03-02 13:40:36 -0800 | [diff] [blame] | 159 | }, |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 160 | "snippet": { # Basic details about a channel section, including title, style and position. # The <code>snippet</code> object contains basic details about the channel |
| 161 | # section, such as its type, style and title. |
| 162 | "localized": { # ChannelSection localization setting # Localized title, read-only. |
| 163 | "title": "A String", # The localized strings for channel section's title. |
| 164 | }, |
| 165 | "defaultLanguage": "A String", # The language of the channel section's default title and description. |
| 166 | "channelId": "A String", # The ID that YouTube uses to uniquely identify the channel that published |
| 167 | # the channel section. |
| 168 | "title": "A String", # The channel section's title for multiple_playlists and multiple_channels. |
| 169 | "style": "A String", # The style of the channel section. |
| 170 | "type": "A String", # The type of the channel section. |
| 171 | "position": 42, # The position of the channel section in the channel. |
| 172 | }, |
| 173 | "id": "A String", # The ID that YouTube uses to uniquely identify the channel section. |
John Asmuth | 614db98 | 2014-04-24 15:46:26 -0400 | [diff] [blame] | 174 | } |
| 175 | |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 176 | onBehalfOfContentOwnerChannel: string, This parameter can only be used in a properly <a |
| 177 | href="/youtube/v3/guides/authentication">authorized request</a>. |
| 178 | <strong>Note:</strong> This parameter is intended exclusively for YouTube |
| 179 | content partners.<br><br>The |
| 180 | <code><strong>onBehalfOfContentOwnerChannel</strong></code> parameter |
| 181 | specifies the YouTube channel ID of the channel to which a video is being |
| 182 | added. This parameter is required when a request specifies a value for the |
| 183 | <code>onBehalfOfContentOwner</code> parameter, and it can only be used in |
| 184 | conjunction with that parameter. In addition, the request must be |
| 185 | authorized using a CMS account that is linked to the content owner that the |
| 186 | <code>onBehalfOfContentOwner</code> parameter specifies. Finally, the |
| 187 | channel that the <code>onBehalfOfContentOwnerChannel</code> parameter value |
| 188 | specifies must be linked to the content owner that the |
| 189 | <code>onBehalfOfContentOwner</code> parameter specifies.<br><br>This |
| 190 | parameter is intended for YouTube content partners that own and manage many |
| 191 | different YouTube channels. It allows content owners to authenticate once |
| 192 | and perform actions on behalf of the channel specified in the parameter |
| 193 | value, without having to provide authentication credentials for each |
| 194 | separate channel. |
| 195 | onBehalfOfContentOwner: string, <strong>Note:</strong> This parameter is intended exclusively for YouTube |
| 196 | content partners.<br><br>The |
| 197 | <code><strong>onBehalfOfContentOwner</strong></code> parameter indicates |
| 198 | that the |
| 199 | request's authorization credentials identify a YouTube CMS user who is |
| 200 | acting on behalf of the content owner specified in the parameter value. |
| 201 | This parameter is intended for YouTube content partners that own and manage |
| 202 | many different YouTube channels. It allows content owners to authenticate |
| 203 | once and get access to all their video and channel data, without having to |
| 204 | provide authentication credentials for each individual channel. The CMS |
| 205 | account that the user authenticates with must be linked to the specified |
| 206 | YouTube content owner. |
| 207 | x__xgafv: string, V1 error format. |
| 208 | Allowed values |
| 209 | 1 - v1 error format |
| 210 | 2 - v2 error format |
John Asmuth | 614db98 | 2014-04-24 15:46:26 -0400 | [diff] [blame] | 211 | |
| 212 | Returns: |
| 213 | An object of the form: |
| 214 | |
Craig Citro | e633be1 | 2015-03-02 13:40:36 -0800 | [diff] [blame] | 215 | { |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 216 | "etag": "A String", # Etag of this resource. |
| 217 | "contentDetails": { # Details about a channelsection, including playlists and channels. # The <code>contentDetails</code> object contains details about the channel |
| 218 | # section content, such as a list of playlists or channels featured in the |
| 219 | # section. |
| 220 | "playlists": [ # The playlist ids for type single_playlist and multiple_playlists. For |
| 221 | # singlePlaylist, only one playlistId is allowed. |
| 222 | "A String", |
| 223 | ], |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 224 | "channels": [ # The channel ids for type multiple_channels. |
| 225 | "A String", |
Nathaniel Manista | 4f877e5 | 2015-06-15 16:44:50 +0000 | [diff] [blame] | 226 | ], |
Nathaniel Manista | 4f877e5 | 2015-06-15 16:44:50 +0000 | [diff] [blame] | 227 | }, |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 228 | "localizations": { # Localizations for different languages |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 229 | "a_key": { # ChannelSection localization setting |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 230 | "title": "A String", # The localized strings for channel section's title. |
Craig Citro | e633be1 | 2015-03-02 13:40:36 -0800 | [diff] [blame] | 231 | }, |
| 232 | }, |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 233 | "kind": "youtube#channelSection", # Identifies what kind of resource this is. Value: the fixed string |
| 234 | # <code>"youtube#channelSection"</code>. |
| 235 | "targeting": { # ChannelSection targeting setting. # The <code>targeting</code> object contains basic targeting settings about |
| 236 | # the channel section. |
| 237 | "languages": [ # The language the channel section is targeting. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 238 | "A String", |
| 239 | ], |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 240 | "countries": [ # The country the channel section is targeting. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 241 | "A String", |
| 242 | ], |
| 243 | "regions": [ # The region the channel section is targeting. |
| 244 | "A String", |
| 245 | ], |
Craig Citro | e633be1 | 2015-03-02 13:40:36 -0800 | [diff] [blame] | 246 | }, |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 247 | "snippet": { # Basic details about a channel section, including title, style and position. # The <code>snippet</code> object contains basic details about the channel |
| 248 | # section, such as its type, style and title. |
| 249 | "localized": { # ChannelSection localization setting # Localized title, read-only. |
| 250 | "title": "A String", # The localized strings for channel section's title. |
| 251 | }, |
| 252 | "defaultLanguage": "A String", # The language of the channel section's default title and description. |
| 253 | "channelId": "A String", # The ID that YouTube uses to uniquely identify the channel that published |
| 254 | # the channel section. |
| 255 | "title": "A String", # The channel section's title for multiple_playlists and multiple_channels. |
| 256 | "style": "A String", # The style of the channel section. |
| 257 | "type": "A String", # The type of the channel section. |
| 258 | "position": 42, # The position of the channel section in the channel. |
| 259 | }, |
| 260 | "id": "A String", # The ID that YouTube uses to uniquely identify the channel section. |
John Asmuth | 614db98 | 2014-04-24 15:46:26 -0400 | [diff] [blame] | 261 | }</pre> |
| 262 | </div> |
| 263 | |
| 264 | <div class="method"> |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 265 | <code class="details" id="list">list(part, mine=None, channelId=None, onBehalfOfContentOwner=None, hl=None, id=None, x__xgafv=None)</code> |
| 266 | <pre>Retrieves a list of resources, possibly filtered. |
John Asmuth | 614db98 | 2014-04-24 15:46:26 -0400 | [diff] [blame] | 267 | |
| 268 | Args: |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 269 | part: string, The <code><strong>part</strong></code> parameter specifies a |
| 270 | comma-separated list of one or more <code>channelSection</code> resource |
| 271 | properties that the API response will include. The <code>part</code> names |
| 272 | that you can include in the parameter value are <code>id</code>, |
| 273 | <code>snippet</code>, and <code>contentDetails</code>.<br><br>If the |
| 274 | parameter identifies a property that contains child properties, the child |
| 275 | properties will be included in the response. For example, in a |
| 276 | <code>channelSection</code> resource, the <code>snippet</code> property |
| 277 | contains other properties, such as a display title for the channelSection. |
| 278 | If you set <code><strong>part=snippet</strong></code>, the API response |
| 279 | will also contain all of those nested properties. (required) (repeated) |
| 280 | mine: boolean, Return the ChannelSections owned by the authenticated user. |
| 281 | channelId: string, Return the ChannelSections owned by the specified channel ID. |
| 282 | onBehalfOfContentOwner: string, <strong>Note:</strong> This parameter is intended exclusively for YouTube |
| 283 | content partners.<br><br>The |
| 284 | <code><strong>onBehalfOfContentOwner</strong></code> parameter indicates |
| 285 | that the |
| 286 | request's authorization credentials identify a YouTube CMS user who is |
| 287 | acting on behalf of the content owner specified in the parameter value. |
| 288 | This parameter is intended for YouTube content partners that own and manage |
| 289 | many different YouTube channels. It allows content owners to authenticate |
| 290 | once and get access to all their video and channel data, without having to |
| 291 | provide authentication credentials for each individual channel. The CMS |
| 292 | account that the user authenticates with must be linked to the specified |
| 293 | YouTube content owner. |
| 294 | hl: string, Return content in specified language |
| 295 | id: string, Return the ChannelSections with the given IDs for Stubby or Apiary. (repeated) |
| 296 | x__xgafv: string, V1 error format. |
| 297 | Allowed values |
| 298 | 1 - v1 error format |
| 299 | 2 - v2 error format |
John Asmuth | 614db98 | 2014-04-24 15:46:26 -0400 | [diff] [blame] | 300 | |
| 301 | Returns: |
| 302 | An object of the form: |
| 303 | |
| 304 | { |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 305 | "items": [ # A list of ChannelSections that match the request criteria. |
Craig Citro | e633be1 | 2015-03-02 13:40:36 -0800 | [diff] [blame] | 306 | { |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 307 | "etag": "A String", # Etag of this resource. |
| 308 | "contentDetails": { # Details about a channelsection, including playlists and channels. # The <code>contentDetails</code> object contains details about the channel |
| 309 | # section content, such as a list of playlists or channels featured in the |
| 310 | # section. |
| 311 | "playlists": [ # The playlist ids for type single_playlist and multiple_playlists. For |
| 312 | # singlePlaylist, only one playlistId is allowed. |
| 313 | "A String", |
| 314 | ], |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 315 | "channels": [ # The channel ids for type multiple_channels. |
| 316 | "A String", |
Nathaniel Manista | 4f877e5 | 2015-06-15 16:44:50 +0000 | [diff] [blame] | 317 | ], |
Nathaniel Manista | 4f877e5 | 2015-06-15 16:44:50 +0000 | [diff] [blame] | 318 | }, |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 319 | "localizations": { # Localizations for different languages |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 320 | "a_key": { # ChannelSection localization setting |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 321 | "title": "A String", # The localized strings for channel section's title. |
Craig Citro | e633be1 | 2015-03-02 13:40:36 -0800 | [diff] [blame] | 322 | }, |
| 323 | }, |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 324 | "kind": "youtube#channelSection", # Identifies what kind of resource this is. Value: the fixed string |
| 325 | # <code>"youtube#channelSection"</code>. |
| 326 | "targeting": { # ChannelSection targeting setting. # The <code>targeting</code> object contains basic targeting settings about |
| 327 | # the channel section. |
| 328 | "languages": [ # The language the channel section is targeting. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 329 | "A String", |
| 330 | ], |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 331 | "countries": [ # The country the channel section is targeting. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 332 | "A String", |
| 333 | ], |
| 334 | "regions": [ # The region the channel section is targeting. |
| 335 | "A String", |
| 336 | ], |
Craig Citro | e633be1 | 2015-03-02 13:40:36 -0800 | [diff] [blame] | 337 | }, |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 338 | "snippet": { # Basic details about a channel section, including title, style and position. # The <code>snippet</code> object contains basic details about the channel |
| 339 | # section, such as its type, style and title. |
| 340 | "localized": { # ChannelSection localization setting # Localized title, read-only. |
| 341 | "title": "A String", # The localized strings for channel section's title. |
| 342 | }, |
| 343 | "defaultLanguage": "A String", # The language of the channel section's default title and description. |
| 344 | "channelId": "A String", # The ID that YouTube uses to uniquely identify the channel that published |
| 345 | # the channel section. |
| 346 | "title": "A String", # The channel section's title for multiple_playlists and multiple_channels. |
| 347 | "style": "A String", # The style of the channel section. |
| 348 | "type": "A String", # The type of the channel section. |
| 349 | "position": 42, # The position of the channel section in the channel. |
| 350 | }, |
| 351 | "id": "A String", # The ID that YouTube uses to uniquely identify the channel section. |
John Asmuth | 614db98 | 2014-04-24 15:46:26 -0400 | [diff] [blame] | 352 | }, |
| 353 | ], |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 354 | "kind": "youtube#channelSectionListResponse", # Identifies what kind of resource this is. Value: the fixed string |
| 355 | # <code>"youtube#channelSectionListResponse"</code>. |
| 356 | "etag": "A String", # Etag of this resource. |
| 357 | "eventId": "A String", # Serialized EventId of the request which produced this response. |
| 358 | "visitorId": "A String", # The <code>visitorId</code> identifies the visitor. |
John Asmuth | 614db98 | 2014-04-24 15:46:26 -0400 | [diff] [blame] | 359 | }</pre> |
| 360 | </div> |
| 361 | |
| 362 | <div class="method"> |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 363 | <code class="details" id="update">update(part, body=None, onBehalfOfContentOwner=None, x__xgafv=None)</code> |
| 364 | <pre>Updates an existing resource. |
John Asmuth | 614db98 | 2014-04-24 15:46:26 -0400 | [diff] [blame] | 365 | |
| 366 | Args: |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 367 | part: string, The <code><strong>part</strong></code> parameter serves two purposes in |
| 368 | this operation. It identifies the properties that the write operation will |
| 369 | set as well as the properties that the API response will |
| 370 | include.<br/><br/>The <code>part</code> names that you can include in the |
| 371 | parameter value are <code>snippet</code> and <code>contentDetails</code>. (required) (repeated) |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame] | 372 | body: object, The request body. |
John Asmuth | 614db98 | 2014-04-24 15:46:26 -0400 | [diff] [blame] | 373 | The object takes the form of: |
| 374 | |
Craig Citro | e633be1 | 2015-03-02 13:40:36 -0800 | [diff] [blame] | 375 | { |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 376 | "etag": "A String", # Etag of this resource. |
| 377 | "contentDetails": { # Details about a channelsection, including playlists and channels. # The <code>contentDetails</code> object contains details about the channel |
| 378 | # section content, such as a list of playlists or channels featured in the |
| 379 | # section. |
| 380 | "playlists": [ # The playlist ids for type single_playlist and multiple_playlists. For |
| 381 | # singlePlaylist, only one playlistId is allowed. |
| 382 | "A String", |
| 383 | ], |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 384 | "channels": [ # The channel ids for type multiple_channels. |
| 385 | "A String", |
Nathaniel Manista | 4f877e5 | 2015-06-15 16:44:50 +0000 | [diff] [blame] | 386 | ], |
Nathaniel Manista | 4f877e5 | 2015-06-15 16:44:50 +0000 | [diff] [blame] | 387 | }, |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 388 | "localizations": { # Localizations for different languages |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 389 | "a_key": { # ChannelSection localization setting |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 390 | "title": "A String", # The localized strings for channel section's title. |
Craig Citro | e633be1 | 2015-03-02 13:40:36 -0800 | [diff] [blame] | 391 | }, |
| 392 | }, |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 393 | "kind": "youtube#channelSection", # Identifies what kind of resource this is. Value: the fixed string |
| 394 | # <code>"youtube#channelSection"</code>. |
| 395 | "targeting": { # ChannelSection targeting setting. # The <code>targeting</code> object contains basic targeting settings about |
| 396 | # the channel section. |
| 397 | "languages": [ # The language the channel section is targeting. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 398 | "A String", |
| 399 | ], |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 400 | "countries": [ # The country the channel section is targeting. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 401 | "A String", |
| 402 | ], |
| 403 | "regions": [ # The region the channel section is targeting. |
| 404 | "A String", |
| 405 | ], |
Craig Citro | e633be1 | 2015-03-02 13:40:36 -0800 | [diff] [blame] | 406 | }, |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 407 | "snippet": { # Basic details about a channel section, including title, style and position. # The <code>snippet</code> object contains basic details about the channel |
| 408 | # section, such as its type, style and title. |
| 409 | "localized": { # ChannelSection localization setting # Localized title, read-only. |
| 410 | "title": "A String", # The localized strings for channel section's title. |
| 411 | }, |
| 412 | "defaultLanguage": "A String", # The language of the channel section's default title and description. |
| 413 | "channelId": "A String", # The ID that YouTube uses to uniquely identify the channel that published |
| 414 | # the channel section. |
| 415 | "title": "A String", # The channel section's title for multiple_playlists and multiple_channels. |
| 416 | "style": "A String", # The style of the channel section. |
| 417 | "type": "A String", # The type of the channel section. |
| 418 | "position": 42, # The position of the channel section in the channel. |
| 419 | }, |
| 420 | "id": "A String", # The ID that YouTube uses to uniquely identify the channel section. |
John Asmuth | 614db98 | 2014-04-24 15:46:26 -0400 | [diff] [blame] | 421 | } |
| 422 | |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 423 | onBehalfOfContentOwner: string, <strong>Note:</strong> This parameter is intended exclusively for YouTube |
| 424 | content partners.<br><br>The |
| 425 | <code><strong>onBehalfOfContentOwner</strong></code> parameter indicates |
| 426 | that the |
| 427 | request's authorization credentials identify a YouTube CMS user who is |
| 428 | acting on behalf of the content owner specified in the parameter value. |
| 429 | This parameter is intended for YouTube content partners that own and manage |
| 430 | many different YouTube channels. It allows content owners to authenticate |
| 431 | once and get access to all their video and channel data, without having to |
| 432 | provide authentication credentials for each individual channel. The CMS |
| 433 | account that the user authenticates with must be linked to the specified |
| 434 | YouTube content owner. |
| 435 | x__xgafv: string, V1 error format. |
| 436 | Allowed values |
| 437 | 1 - v1 error format |
| 438 | 2 - v2 error format |
John Asmuth | 614db98 | 2014-04-24 15:46:26 -0400 | [diff] [blame] | 439 | |
| 440 | Returns: |
| 441 | An object of the form: |
| 442 | |
Craig Citro | e633be1 | 2015-03-02 13:40:36 -0800 | [diff] [blame] | 443 | { |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 444 | "etag": "A String", # Etag of this resource. |
| 445 | "contentDetails": { # Details about a channelsection, including playlists and channels. # The <code>contentDetails</code> object contains details about the channel |
| 446 | # section content, such as a list of playlists or channels featured in the |
| 447 | # section. |
| 448 | "playlists": [ # The playlist ids for type single_playlist and multiple_playlists. For |
| 449 | # singlePlaylist, only one playlistId is allowed. |
| 450 | "A String", |
| 451 | ], |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 452 | "channels": [ # The channel ids for type multiple_channels. |
| 453 | "A String", |
Nathaniel Manista | 4f877e5 | 2015-06-15 16:44:50 +0000 | [diff] [blame] | 454 | ], |
Nathaniel Manista | 4f877e5 | 2015-06-15 16:44:50 +0000 | [diff] [blame] | 455 | }, |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 456 | "localizations": { # Localizations for different languages |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 457 | "a_key": { # ChannelSection localization setting |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 458 | "title": "A String", # The localized strings for channel section's title. |
Craig Citro | e633be1 | 2015-03-02 13:40:36 -0800 | [diff] [blame] | 459 | }, |
| 460 | }, |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 461 | "kind": "youtube#channelSection", # Identifies what kind of resource this is. Value: the fixed string |
| 462 | # <code>"youtube#channelSection"</code>. |
| 463 | "targeting": { # ChannelSection targeting setting. # The <code>targeting</code> object contains basic targeting settings about |
| 464 | # the channel section. |
| 465 | "languages": [ # The language the channel section is targeting. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 466 | "A String", |
| 467 | ], |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 468 | "countries": [ # The country the channel section is targeting. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 469 | "A String", |
| 470 | ], |
| 471 | "regions": [ # The region the channel section is targeting. |
| 472 | "A String", |
| 473 | ], |
Craig Citro | e633be1 | 2015-03-02 13:40:36 -0800 | [diff] [blame] | 474 | }, |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 475 | "snippet": { # Basic details about a channel section, including title, style and position. # The <code>snippet</code> object contains basic details about the channel |
| 476 | # section, such as its type, style and title. |
| 477 | "localized": { # ChannelSection localization setting # Localized title, read-only. |
| 478 | "title": "A String", # The localized strings for channel section's title. |
| 479 | }, |
| 480 | "defaultLanguage": "A String", # The language of the channel section's default title and description. |
| 481 | "channelId": "A String", # The ID that YouTube uses to uniquely identify the channel that published |
| 482 | # the channel section. |
| 483 | "title": "A String", # The channel section's title for multiple_playlists and multiple_channels. |
| 484 | "style": "A String", # The style of the channel section. |
| 485 | "type": "A String", # The type of the channel section. |
| 486 | "position": 42, # The position of the channel section in the channel. |
| 487 | }, |
| 488 | "id": "A String", # The ID that YouTube uses to uniquely identify the channel section. |
John Asmuth | 614db98 | 2014-04-24 15:46:26 -0400 | [diff] [blame] | 489 | }</pre> |
| 490 | </div> |
| 491 | |
| 492 | </body></html> |