Пример #1
0
 /// <summary>Uploads a channel banner image to YouTube. This method represents the first two steps in a three-
 /// step process to update the banner image for a channel:
 ///
 /// - Call the channelBanners.insert method to upload the binary image data to YouTube. The image must have a
 /// 16:9 aspect ratio and be at least 2120x1192 pixels. - Extract the url property's value from the response
 /// that the API returns for step 1. - Call the channels.update method to update the channel's branding
 /// settings. Set the brandingSettings.image.bannerExternalUrl property's value to the URL obtained in step
 /// 2.</summary>
 /// <param name="body">The body of the request.</param>
 /// <param name="stream">The stream to upload.</param>
 /// <param name="contentType">The content type of the stream to upload.</param>
 public virtual ChannelBannersResource.InsertMediaUpload Insert(ChannelBannerResource body, Stream stream, string contentType)
 {
     return(new ChannelBannersResource.InsertMediaUpload(this.service, body, stream, contentType));
 }
Пример #2
0
 /// <summary>Uploads a channel banner image to YouTube. This method represents the first two steps in a three-
 /// step process to update the banner image for a channel:
 ///
 /// - Call the channelBanners.insert method to upload the binary image data to YouTube. The image must have a
 /// 16:9 aspect ratio and be at least 2120x1192 pixels. - Extract the url property's value from the response
 /// that the API returns for step 1. - Call the channels.update method to update the channel's branding
 /// settings. Set the brandingSettings.image.bannerExternalUrl property's value to the URL obtained in step
 /// 2.</summary>
 /// <param name="body">The body of the request.</param>
 public virtual ChannelBannersResource.InsertRequest Insert(ChannelBannerResource body)
 {
     return(new ChannelBannersResource.InsertRequest(this.service, body));
 }