Class SubscriptionsResource
The "subscriptions" collection of methods.
Inherited Members
Namespace: Google.Apis.YouTube.v3
Assembly: Google.Apis.YouTube.v3.dll
Syntax
public class SubscriptionsResourceConstructors
SubscriptionsResource(IClientService)
Constructs a new resource.
Declaration
public SubscriptionsResource(IClientService service)Parameters
| Type | Name | Description | 
|---|---|---|
| IClientService | service | 
Methods
Delete(string)
Deletes a resource.
Declaration
public virtual SubscriptionsResource.DeleteRequest Delete(string id)Parameters
| Type | Name | Description | 
|---|---|---|
| string | id | 
 | 
Returns
| Type | Description | 
|---|---|
| SubscriptionsResource.DeleteRequest | 
Insert(Subscription, Repeatable<string>)
Inserts a new resource into this collection.
Declaration
public virtual SubscriptionsResource.InsertRequest Insert(Subscription body, Repeatable<string> part)Parameters
| Type | Name | Description | 
|---|---|---|
| Subscription | body | The body of the request. | 
| Repeatable<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. | 
Returns
| Type | Description | 
|---|---|
| SubscriptionsResource.InsertRequest | 
List(Repeatable<string>)
Retrieves a list of resources, possibly filtered.
Declaration
public virtual SubscriptionsResource.ListRequest List(Repeatable<string> part)Parameters
| Type | Name | Description | 
|---|---|---|
| Repeatable<string> | part | The part parameter specifies a comma-separated list of one or more subscription 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 subscription resource, the snippet property contains other properties, such as a display title for the subscription. If you set part=snippet, the API response will also contain all of those nested properties. | 
Returns
| Type | Description | 
|---|---|
| SubscriptionsResource.ListRequest |