1<html><body> 2<style> 3 4body, 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 15body { 16 font-size: 13px; 17 padding: 1em; 18} 19 20h1 { 21 font-size: 26px; 22 margin-bottom: 1em; 23} 24 25h2 { 26 font-size: 24px; 27 margin-bottom: 1em; 28} 29 30h3 { 31 font-size: 20px; 32 margin-bottom: 1em; 33 margin-top: 1em; 34} 35 36pre, code { 37 line-height: 1.5; 38 font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace; 39} 40 41pre { 42 margin-top: 0.5em; 43} 44 45h1, h2, h3, p { 46 font-family: Arial, sans serif; 47} 48 49h1, 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 75<h1><a href="youtube_v3.html">YouTube Data API</a> . <a href="youtube_v3.channelSections.html">channelSections</a></h1> 76<h2>Instance Methods</h2> 77<p class="toc_element"> 78 <code><a href="#delete">delete(id, onBehalfOfContentOwner=None)</a></code></p> 79<p class="firstline">Deletes a channelSection.</p> 80<p class="toc_element"> 81 <code><a href="#insert">insert(part, body, onBehalfOfContentOwner=None, onBehalfOfContentOwnerChannel=None)</a></code></p> 82<p class="firstline">Adds a channelSection for the authenticated user's channel.</p> 83<p class="toc_element"> 84 <code><a href="#list">list(part, onBehalfOfContentOwner=None, hl=None, channelId=None, mine=None, id=None)</a></code></p> 85<p class="firstline">Returns channelSection resources that match the API request criteria.</p> 86<p class="toc_element"> 87 <code><a href="#update">update(part, body, onBehalfOfContentOwner=None)</a></code></p> 88<p class="firstline">Update a channelSection.</p> 89<h3>Method Details</h3> 90<div class="method"> 91 <code class="details" id="delete">delete(id, onBehalfOfContentOwner=None)</code> 92 <pre>Deletes a channelSection. 93 94Args: 95 id: string, The id parameter specifies the YouTube channelSection ID for the resource that is being deleted. In a channelSection resource, the id property specifies the YouTube channelSection ID. (required) 96 onBehalfOfContentOwner: string, Note: This parameter is intended exclusively for YouTube content partners. 97 98The onBehalfOfContentOwner parameter indicates that the request's authorization credentials identify a YouTube CMS user who is acting on behalf of the content owner specified in the parameter value. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and get access to all their video and channel data, without having to provide authentication credentials for each individual channel. The CMS account that the user authenticates with must be linked to the specified YouTube content owner. 99</pre> 100</div> 101 102<div class="method"> 103 <code class="details" id="insert">insert(part, body, onBehalfOfContentOwner=None, onBehalfOfContentOwnerChannel=None)</code> 104 <pre>Adds a channelSection for the authenticated user's channel. 105 106Args: 107 part: string, The part parameter serves two purposes in this operation. It identifies the properties that the write operation will set as well as the properties that the API response will include. 108 109The part names that you can include in the parameter value are snippet and contentDetails. (required) 110 body: object, The request body. (required) 111 The object takes the form of: 112 113{ 114 "kind": "youtube#channelSection", # Identifies what kind of resource this is. Value: the fixed string "youtube#channelSection". 115 "targeting": { # ChannelSection targeting setting. # The targeting object contains basic targeting settings about the channel section. 116 "languages": [ # The language the channel section is targeting. 117 "A String", 118 ], 119 "regions": [ # The region the channel section is targeting. 120 "A String", 121 ], 122 "countries": [ # The country the channel section is targeting. 123 "A String", 124 ], 125 }, 126 "contentDetails": { # Details about a channelsection, including playlists and channels. # The contentDetails object contains details about the channel section content, such as a list of playlists or channels featured in the section. 127 "channels": [ # The channel ids for type multiple_channels. 128 "A String", 129 ], 130 "playlists": [ # The playlist ids for type single_playlist and multiple_playlists. For singlePlaylist, only one playlistId is allowed. 131 "A String", 132 ], 133 }, 134 "snippet": { # Basic details about a channel section, including title, style and position. # The snippet object contains basic details about the channel section, such as its type, style and title. 135 "style": "A String", # The style of the channel section. 136 "title": "A String", # The channel section's title for multiple_playlists and multiple_channels. 137 "channelId": "A String", # The ID that YouTube uses to uniquely identify the channel that published the channel section. 138 "defaultLanguage": "A String", # The language of the channel section's default title and description. 139 "position": 42, # The position of the channel section in the channel. 140 "type": "A String", # The type of the channel section. 141 "localized": { # ChannelSection localization setting # Localized title, read-only. 142 "title": "A String", # The localized strings for channel section's title. 143 }, 144 }, 145 "etag": "A String", # Etag of this resource. 146 "id": "A String", # The ID that YouTube uses to uniquely identify the channel section. 147 "localizations": { # Localizations for different languages 148 "a_key": { # ChannelSection localization setting # The language tag, using string since map_key require simple types. 149 "title": "A String", # The localized strings for channel section's title. 150 }, 151 }, 152 } 153 154 onBehalfOfContentOwner: string, Note: This parameter is intended exclusively for YouTube content partners. 155 156The onBehalfOfContentOwner parameter indicates that the request's authorization credentials identify a YouTube CMS user who is acting on behalf of the content owner specified in the parameter value. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and get access to all their video and channel data, without having to provide authentication credentials for each individual channel. The CMS account that the user authenticates with must be linked to the specified YouTube content owner. 157 onBehalfOfContentOwnerChannel: string, This parameter can only be used in a properly authorized request. Note: This parameter is intended exclusively for YouTube content partners. 158 159The onBehalfOfContentOwnerChannel parameter specifies the YouTube channel ID of the channel to which a video is being added. This parameter is required when a request specifies a value for the onBehalfOfContentOwner parameter, and it can only be used in conjunction with that parameter. In addition, the request must be authorized using a CMS account that is linked to the content owner that the onBehalfOfContentOwner parameter specifies. Finally, the channel that the onBehalfOfContentOwnerChannel parameter value specifies must be linked to the content owner that the onBehalfOfContentOwner parameter specifies. 160 161This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and perform actions on behalf of the channel specified in the parameter value, without having to provide authentication credentials for each separate channel. 162 163Returns: 164 An object of the form: 165 166 { 167 "kind": "youtube#channelSection", # Identifies what kind of resource this is. Value: the fixed string "youtube#channelSection". 168 "targeting": { # ChannelSection targeting setting. # The targeting object contains basic targeting settings about the channel section. 169 "languages": [ # The language the channel section is targeting. 170 "A String", 171 ], 172 "regions": [ # The region the channel section is targeting. 173 "A String", 174 ], 175 "countries": [ # The country the channel section is targeting. 176 "A String", 177 ], 178 }, 179 "contentDetails": { # Details about a channelsection, including playlists and channels. # The contentDetails object contains details about the channel section content, such as a list of playlists or channels featured in the section. 180 "channels": [ # The channel ids for type multiple_channels. 181 "A String", 182 ], 183 "playlists": [ # The playlist ids for type single_playlist and multiple_playlists. For singlePlaylist, only one playlistId is allowed. 184 "A String", 185 ], 186 }, 187 "snippet": { # Basic details about a channel section, including title, style and position. # The snippet object contains basic details about the channel section, such as its type, style and title. 188 "style": "A String", # The style of the channel section. 189 "title": "A String", # The channel section's title for multiple_playlists and multiple_channels. 190 "channelId": "A String", # The ID that YouTube uses to uniquely identify the channel that published the channel section. 191 "defaultLanguage": "A String", # The language of the channel section's default title and description. 192 "position": 42, # The position of the channel section in the channel. 193 "type": "A String", # The type of the channel section. 194 "localized": { # ChannelSection localization setting # Localized title, read-only. 195 "title": "A String", # The localized strings for channel section's title. 196 }, 197 }, 198 "etag": "A String", # Etag of this resource. 199 "id": "A String", # The ID that YouTube uses to uniquely identify the channel section. 200 "localizations": { # Localizations for different languages 201 "a_key": { # ChannelSection localization setting # The language tag, using string since map_key require simple types. 202 "title": "A String", # The localized strings for channel section's title. 203 }, 204 }, 205 }</pre> 206</div> 207 208<div class="method"> 209 <code class="details" id="list">list(part, onBehalfOfContentOwner=None, hl=None, channelId=None, mine=None, id=None)</code> 210 <pre>Returns channelSection resources that match the API request criteria. 211 212Args: 213 part: string, The part parameter specifies a comma-separated list of one or more channelSection resource properties that the API response will include. The part names that you can include in the parameter value are id, snippet, and contentDetails. 214 215If the parameter identifies a property that contains child properties, the child properties will be included in the response. For example, in a channelSection resource, the snippet property contains other properties, such as a display title for the channelSection. If you set part=snippet, the API response will also contain all of those nested properties. (required) 216 onBehalfOfContentOwner: string, Note: This parameter is intended exclusively for YouTube content partners. 217 218The onBehalfOfContentOwner parameter indicates that the request's authorization credentials identify a YouTube CMS user who is acting on behalf of the content owner specified in the parameter value. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and get access to all their video and channel data, without having to provide authentication credentials for each individual channel. The CMS account that the user authenticates with must be linked to the specified YouTube content owner. 219 hl: string, The hl parameter indicates that the snippet.localized property values in the returned channelSection resources should be in the specified language if localized values for that language are available. For example, if the API request specifies hl=de, the snippet.localized properties in the API response will contain German titles if German titles are available. Channel owners can provide localized channel section titles using either the channelSections.insert or channelSections.update method. 220 channelId: string, The channelId parameter specifies a YouTube channel ID. The API will only return that channel's channelSections. 221 mine: boolean, Set this parameter's value to true to retrieve a feed of the authenticated user's channelSections. 222 id: string, The id parameter specifies a comma-separated list of the YouTube channelSection ID(s) for the resource(s) that are being retrieved. In a channelSection resource, the id property specifies the YouTube channelSection ID. 223 224Returns: 225 An object of the form: 226 227 { 228 "eventId": "A String", # Serialized EventId of the request which produced this response. 229 "items": [ # A list of ChannelSections that match the request criteria. 230 { 231 "kind": "youtube#channelSection", # Identifies what kind of resource this is. Value: the fixed string "youtube#channelSection". 232 "targeting": { # ChannelSection targeting setting. # The targeting object contains basic targeting settings about the channel section. 233 "languages": [ # The language the channel section is targeting. 234 "A String", 235 ], 236 "regions": [ # The region the channel section is targeting. 237 "A String", 238 ], 239 "countries": [ # The country the channel section is targeting. 240 "A String", 241 ], 242 }, 243 "contentDetails": { # Details about a channelsection, including playlists and channels. # The contentDetails object contains details about the channel section content, such as a list of playlists or channels featured in the section. 244 "channels": [ # The channel ids for type multiple_channels. 245 "A String", 246 ], 247 "playlists": [ # The playlist ids for type single_playlist and multiple_playlists. For singlePlaylist, only one playlistId is allowed. 248 "A String", 249 ], 250 }, 251 "snippet": { # Basic details about a channel section, including title, style and position. # The snippet object contains basic details about the channel section, such as its type, style and title. 252 "style": "A String", # The style of the channel section. 253 "title": "A String", # The channel section's title for multiple_playlists and multiple_channels. 254 "channelId": "A String", # The ID that YouTube uses to uniquely identify the channel that published the channel section. 255 "defaultLanguage": "A String", # The language of the channel section's default title and description. 256 "position": 42, # The position of the channel section in the channel. 257 "type": "A String", # The type of the channel section. 258 "localized": { # ChannelSection localization setting # Localized title, read-only. 259 "title": "A String", # The localized strings for channel section's title. 260 }, 261 }, 262 "etag": "A String", # Etag of this resource. 263 "id": "A String", # The ID that YouTube uses to uniquely identify the channel section. 264 "localizations": { # Localizations for different languages 265 "a_key": { # ChannelSection localization setting # The language tag, using string since map_key require simple types. 266 "title": "A String", # The localized strings for channel section's title. 267 }, 268 }, 269 }, 270 ], 271 "kind": "youtube#channelSectionListResponse", # Identifies what kind of resource this is. Value: the fixed string "youtube#channelSectionListResponse". 272 "etag": "A String", # Etag of this resource. 273 "visitorId": "A String", # The visitorId identifies the visitor. 274 }</pre> 275</div> 276 277<div class="method"> 278 <code class="details" id="update">update(part, body, onBehalfOfContentOwner=None)</code> 279 <pre>Update a channelSection. 280 281Args: 282 part: string, The part parameter serves two purposes in this operation. It identifies the properties that the write operation will set as well as the properties that the API response will include. 283 284The part names that you can include in the parameter value are snippet and contentDetails. (required) 285 body: object, The request body. (required) 286 The object takes the form of: 287 288{ 289 "kind": "youtube#channelSection", # Identifies what kind of resource this is. Value: the fixed string "youtube#channelSection". 290 "targeting": { # ChannelSection targeting setting. # The targeting object contains basic targeting settings about the channel section. 291 "languages": [ # The language the channel section is targeting. 292 "A String", 293 ], 294 "regions": [ # The region the channel section is targeting. 295 "A String", 296 ], 297 "countries": [ # The country the channel section is targeting. 298 "A String", 299 ], 300 }, 301 "contentDetails": { # Details about a channelsection, including playlists and channels. # The contentDetails object contains details about the channel section content, such as a list of playlists or channels featured in the section. 302 "channels": [ # The channel ids for type multiple_channels. 303 "A String", 304 ], 305 "playlists": [ # The playlist ids for type single_playlist and multiple_playlists. For singlePlaylist, only one playlistId is allowed. 306 "A String", 307 ], 308 }, 309 "snippet": { # Basic details about a channel section, including title, style and position. # The snippet object contains basic details about the channel section, such as its type, style and title. 310 "style": "A String", # The style of the channel section. 311 "title": "A String", # The channel section's title for multiple_playlists and multiple_channels. 312 "channelId": "A String", # The ID that YouTube uses to uniquely identify the channel that published the channel section. 313 "defaultLanguage": "A String", # The language of the channel section's default title and description. 314 "position": 42, # The position of the channel section in the channel. 315 "type": "A String", # The type of the channel section. 316 "localized": { # ChannelSection localization setting # Localized title, read-only. 317 "title": "A String", # The localized strings for channel section's title. 318 }, 319 }, 320 "etag": "A String", # Etag of this resource. 321 "id": "A String", # The ID that YouTube uses to uniquely identify the channel section. 322 "localizations": { # Localizations for different languages 323 "a_key": { # ChannelSection localization setting # The language tag, using string since map_key require simple types. 324 "title": "A String", # The localized strings for channel section's title. 325 }, 326 }, 327 } 328 329 onBehalfOfContentOwner: string, Note: This parameter is intended exclusively for YouTube content partners. 330 331The onBehalfOfContentOwner parameter indicates that the request's authorization credentials identify a YouTube CMS user who is acting on behalf of the content owner specified in the parameter value. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and get access to all their video and channel data, without having to provide authentication credentials for each individual channel. The CMS account that the user authenticates with must be linked to the specified YouTube content owner. 332 333Returns: 334 An object of the form: 335 336 { 337 "kind": "youtube#channelSection", # Identifies what kind of resource this is. Value: the fixed string "youtube#channelSection". 338 "targeting": { # ChannelSection targeting setting. # The targeting object contains basic targeting settings about the channel section. 339 "languages": [ # The language the channel section is targeting. 340 "A String", 341 ], 342 "regions": [ # The region the channel section is targeting. 343 "A String", 344 ], 345 "countries": [ # The country the channel section is targeting. 346 "A String", 347 ], 348 }, 349 "contentDetails": { # Details about a channelsection, including playlists and channels. # The contentDetails object contains details about the channel section content, such as a list of playlists or channels featured in the section. 350 "channels": [ # The channel ids for type multiple_channels. 351 "A String", 352 ], 353 "playlists": [ # The playlist ids for type single_playlist and multiple_playlists. For singlePlaylist, only one playlistId is allowed. 354 "A String", 355 ], 356 }, 357 "snippet": { # Basic details about a channel section, including title, style and position. # The snippet object contains basic details about the channel section, such as its type, style and title. 358 "style": "A String", # The style of the channel section. 359 "title": "A String", # The channel section's title for multiple_playlists and multiple_channels. 360 "channelId": "A String", # The ID that YouTube uses to uniquely identify the channel that published the channel section. 361 "defaultLanguage": "A String", # The language of the channel section's default title and description. 362 "position": 42, # The position of the channel section in the channel. 363 "type": "A String", # The type of the channel section. 364 "localized": { # ChannelSection localization setting # Localized title, read-only. 365 "title": "A String", # The localized strings for channel section's title. 366 }, 367 }, 368 "etag": "A String", # Etag of this resource. 369 "id": "A String", # The ID that YouTube uses to uniquely identify the channel section. 370 "localizations": { # Localizations for different languages 371 "a_key": { # ChannelSection localization setting # The language tag, using string since map_key require simple types. 372 "title": "A String", # The localized strings for channel section's title. 373 }, 374 }, 375 }</pre> 376</div> 377 378</body></html>