Class ActivitiesResource
The "activities" collection of methods.
Inheritance
Inherited Members
Namespace: Google.Apis.YouTube.v3
Assembly: Google.Apis.YouTube.v3.dll
Syntax
public class ActivitiesResource
Constructors
ActivitiesResource(IClientService)
Constructs a new resource.
Declaration
public ActivitiesResource(IClientService service)
Parameters
| Type | Name | Description |
|---|---|---|
| IClientService | service |
Methods
Insert(Activity, String)
Posts a bulletin for a specific channel. (The user submitting the request must be authorized to act on the channel's behalf.)
Note: Even though an activity resource can contain information about actions like a user rating a video or marking a video as a favorite, you need to use other API methods to generate those activity resources. For example, you would use the API's videos.rate() method to rate a video and the playlistItems.insert() method to mark a video as a favorite.
Declaration
public virtual ActivitiesResource.InsertRequest Insert(Activity body, string part)
Parameters
| Type | Name | Description |
|---|---|---|
| Activity | 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 |
|---|---|
| ActivitiesResource.InsertRequest |
List(String)
Returns a list of channel activity events that match the request criteria. For example, you can retrieve events associated with a particular channel, events associated with the user's subscriptions and Google+ friends, or the YouTube home page feed, which is customized for each user.
Declaration
public virtual ActivitiesResource.ListRequest List(string part)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | part | The part parameter specifies a comma-separated list of one or more activity 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 an activity resource, the snippet property contains other properties that identify the type of activity, a display title for the activity, and so forth. If you set part=snippet, the API response will also contain all of those nested properties. |
Returns
| Type | Description |
|---|---|
| ActivitiesResource.ListRequest |