Class SubscriptionsResource
The "subscriptions" collection of methods.
Inheritance
Inherited Members
Namespace: Google.Apis.YouTube.v3
Assembly: Google.Apis.YouTube.v3.dll
Syntax
public class SubscriptionsResource
Constructors
SubscriptionsResource(IClientService)
Constructs a new resource.
Declaration
public SubscriptionsResource(IClientService service)
Parameters
| Type | Name | Description |
|---|---|---|
| IClientService | service |
Methods
Delete(String)
Deletes a subscription.
Declaration
public virtual SubscriptionsResource.DeleteRequest Delete(string id)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | id | The id parameter specifies the YouTube subscription ID for the resource that is being deleted. In a subscription resource, the id property specifies the YouTube subscription ID. |
Returns
| Type | Description |
|---|---|
| SubscriptionsResource.DeleteRequest |
Insert(Subscription, String)
Adds a subscription for the authenticated user's channel.
Declaration
public virtual SubscriptionsResource.InsertRequest Insert(Subscription body, string part)
Parameters
| Type | Name | Description |
|---|---|---|
| Subscription | 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. |
Returns
| Type | Description |
|---|---|
| SubscriptionsResource.InsertRequest |
List(String)
Returns subscription resources that match the API request criteria.
Declaration
public virtual SubscriptionsResource.ListRequest List(string part)
Parameters
| Type | Name | Description |
|---|---|---|
| System.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 |