Show / Hide Table of Contents

Class ChannelsResource

The "channels" collection of methods.

Inheritance
System.Object
ChannelsResource
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Google.Apis.YouTube.v3
Assembly: Google.Apis.YouTube.v3.dll
Syntax
public class ChannelsResource

Constructors

ChannelsResource(IClientService)

Constructs a new resource.

Declaration
public ChannelsResource(IClientService service)
Parameters
Type Name Description
IClientService service

Methods

List(String)

Returns a collection of zero or more channel resources that match the request criteria.

Declaration
public virtual ChannelsResource.ListRequest List(string part)
Parameters
Type Name Description
System.String part

The part parameter specifies a comma-separated list of one or more channel resource properties that the API response will include.

If the parameter identifies a property that contains child properties, the child properties will be included in the response. For example, in a channel resource, the contentDetails property contains other properties, such as the uploads properties. As such, if you set part=contentDetails, the API response will also contain all of those nested properties.

Returns
Type Description
ChannelsResource.ListRequest

Update(Channel, String)

Updates a channel's metadata. Note that this method currently only supports updates to the channel resource's brandingSettings and invideoPromotion objects and their child properties.

Declaration
public virtual ChannelsResource.UpdateRequest Update(Channel body, string part)
Parameters
Type Name Description
Channel body

The body of the request.

System.String part

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.

The API currently only allows the parameter value to be set to either brandingSettings or invideoPromotion. (You cannot update both of those parts with a single request.)

Note that this method overrides the existing values for all of the mutable properties that are contained in any parts that the parameter value specifies.

Returns
Type Description
ChannelsResource.UpdateRequest
Back to top