• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1<html><body>
2<style>
3
4body, h1, h2, h3, div, span, p, pre, a {
5  margin: 0;
6  padding: 0;
7  border: 0;
8  font-weight: inherit;
9  font-style: inherit;
10  font-size: 100%;
11  font-family: inherit;
12  vertical-align: baseline;
13}
14
15body {
16  font-size: 13px;
17  padding: 1em;
18}
19
20h1 {
21  font-size: 26px;
22  margin-bottom: 1em;
23}
24
25h2 {
26  font-size: 24px;
27  margin-bottom: 1em;
28}
29
30h3 {
31  font-size: 20px;
32  margin-bottom: 1em;
33  margin-top: 1em;
34}
35
36pre, code {
37  line-height: 1.5;
38  font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace;
39}
40
41pre {
42  margin-top: 0.5em;
43}
44
45h1, h2, h3, p {
46  font-family: Arial, sans serif;
47}
48
49h1, h2, h3 {
50  border-bottom: solid #CCC 1px;
51}
52
53.toc_element {
54  margin-top: 0.5em;
55}
56
57.firstline {
58  margin-left: 2 em;
59}
60
61.method  {
62  margin-top: 1em;
63  border: solid 1px #CCC;
64  padding: 1em;
65  background: #EEE;
66}
67
68.details {
69  font-weight: bold;
70  font-size: 14px;
71}
72
73</style>
74
75<h1><a href="youtube_v3.html">YouTube Data API</a> . <a href="youtube_v3.activities.html">activities</a></h1>
76<h2>Instance Methods</h2>
77<p class="toc_element">
78  <code><a href="#insert">insert(part, body)</a></code></p>
79<p class="firstline">Posts a bulletin for a specific channel. (The user submitting the request must be authorized to act on the channel's behalf.)</p>
80<p class="toc_element">
81  <code><a href="#list">list(part, pageToken=None, publishedBefore=None, channelId=None, mine=None, maxResults=None, regionCode=None, home=None, publishedAfter=None)</a></code></p>
82<p class="firstline">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.</p>
83<p class="toc_element">
84  <code><a href="#list_next">list_next(previous_request, previous_response)</a></code></p>
85<p class="firstline">Retrieves the next page of results.</p>
86<h3>Method Details</h3>
87<div class="method">
88    <code class="details" id="insert">insert(part, body)</code>
89  <pre>Posts a bulletin for a specific channel. (The user submitting the request must be authorized to act on the channel's behalf.)
90
91Note: 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.
92
93Args:
94  part: string, 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. (required)
95  body: object, The request body. (required)
96    The object takes the form of:
97
98{ # An activity resource contains information about an action that a particular channel, or user, has taken on YouTube.The actions reported in activity feeds include rating a video, sharing a video, marking a video as a favorite, commenting on a video, uploading a video, and so forth. Each activity resource identifies the type of action, the channel associated with the action, and the resource(s) associated with the action, such as the video that was rated or uploaded.
99    "snippet": { # Basic details about an activity, including title, description, thumbnails, activity type and group. # The snippet object contains basic details about the activity, including the activity's type and group ID.
100      "thumbnails": { # Internal representation of thumbnails for a YouTube resource. # A map of thumbnail images associated with the resource that is primarily associated with the activity. For each object in the map, the key is the name of the thumbnail image, and the value is an object that contains other information about the thumbnail.
101        "default": { # A thumbnail is an image representing a YouTube resource. # The default image for this resource.
102          "url": "A String", # The thumbnail image's URL.
103          "width": 42, # (Optional) Width of the thumbnail image.
104          "height": 42, # (Optional) Height of the thumbnail image.
105        },
106        "high": { # A thumbnail is an image representing a YouTube resource. # The high quality image for this resource.
107          "url": "A String", # The thumbnail image's URL.
108          "width": 42, # (Optional) Width of the thumbnail image.
109          "height": 42, # (Optional) Height of the thumbnail image.
110        },
111        "medium": { # A thumbnail is an image representing a YouTube resource. # The medium quality image for this resource.
112          "url": "A String", # The thumbnail image's URL.
113          "width": 42, # (Optional) Width of the thumbnail image.
114          "height": 42, # (Optional) Height of the thumbnail image.
115        },
116        "maxres": { # A thumbnail is an image representing a YouTube resource. # The maximum resolution quality image for this resource.
117          "url": "A String", # The thumbnail image's URL.
118          "width": 42, # (Optional) Width of the thumbnail image.
119          "height": 42, # (Optional) Height of the thumbnail image.
120        },
121        "standard": { # A thumbnail is an image representing a YouTube resource. # The standard quality image for this resource.
122          "url": "A String", # The thumbnail image's URL.
123          "width": 42, # (Optional) Width of the thumbnail image.
124          "height": 42, # (Optional) Height of the thumbnail image.
125        },
126      },
127      "title": "A String", # The title of the resource primarily associated with the activity.
128      "channelId": "A String", # The ID that YouTube uses to uniquely identify the channel associated with the activity.
129      "publishedAt": "A String", # The date and time that the video was uploaded. The value is specified in ISO 8601 (YYYY-MM-DDThh:mm:ss.sZ) format.
130      "channelTitle": "A String", # Channel title for the channel responsible for this activity
131      "type": "A String", # The type of activity that the resource describes.
132      "groupId": "A String", # The group ID associated with the activity. A group ID identifies user events that are associated with the same user and resource. For example, if a user rates a video and marks the same video as a favorite, the entries for those events would have the same group ID in the user's activity feed. In your user interface, you can avoid repetition by grouping events with the same groupId value.
133      "description": "A String", # The description of the resource primarily associated with the activity.
134    },
135    "contentDetails": { # Details about the content of an activity: the video that was shared, the channel that was subscribed to, etc. # The contentDetails object contains information about the content associated with the activity. For example, if the snippet.type value is videoRated, then the contentDetails object's content identifies the rated video.
136      "comment": { # Information about a resource that received a comment. # The comment object contains information about a resource that received a comment. This property is only present if the snippet.type is comment.
137        "resourceId": { # A resource id is a generic reference that points to another YouTube resource. # The resourceId object contains information that identifies the resource associated with the comment.
138          "kind": "A String", # The type of the API resource.
139          "channelId": "A String", # The ID that YouTube uses to uniquely identify the referred resource, if that resource is a channel. This property is only present if the resourceId.kind value is youtube#channel.
140          "playlistId": "A String", # The ID that YouTube uses to uniquely identify the referred resource, if that resource is a playlist. This property is only present if the resourceId.kind value is youtube#playlist.
141          "videoId": "A String", # The ID that YouTube uses to uniquely identify the referred resource, if that resource is a video. This property is only present if the resourceId.kind value is youtube#video.
142        },
143      },
144      "playlistItem": { # Information about a new playlist item. # The playlistItem object contains information about a new playlist item. This property is only present if the snippet.type is playlistItem.
145        "resourceId": { # A resource id is a generic reference that points to another YouTube resource. # The resourceId object contains information about the resource that was added to the playlist.
146          "kind": "A String", # The type of the API resource.
147          "channelId": "A String", # The ID that YouTube uses to uniquely identify the referred resource, if that resource is a channel. This property is only present if the resourceId.kind value is youtube#channel.
148          "playlistId": "A String", # The ID that YouTube uses to uniquely identify the referred resource, if that resource is a playlist. This property is only present if the resourceId.kind value is youtube#playlist.
149          "videoId": "A String", # The ID that YouTube uses to uniquely identify the referred resource, if that resource is a video. This property is only present if the resourceId.kind value is youtube#video.
150        },
151        "playlistId": "A String", # The value that YouTube uses to uniquely identify the playlist.
152        "playlistItemId": "A String", # ID of the item within the playlist.
153      },
154      "like": { # Information about a resource that received a positive (like) rating. # The like object contains information about a resource that received a positive (like) rating. This property is only present if the snippet.type is like.
155        "resourceId": { # A resource id is a generic reference that points to another YouTube resource. # The resourceId object contains information that identifies the rated resource.
156          "kind": "A String", # The type of the API resource.
157          "channelId": "A String", # The ID that YouTube uses to uniquely identify the referred resource, if that resource is a channel. This property is only present if the resourceId.kind value is youtube#channel.
158          "playlistId": "A String", # The ID that YouTube uses to uniquely identify the referred resource, if that resource is a playlist. This property is only present if the resourceId.kind value is youtube#playlist.
159          "videoId": "A String", # The ID that YouTube uses to uniquely identify the referred resource, if that resource is a video. This property is only present if the resourceId.kind value is youtube#video.
160        },
161      },
162      "promotedItem": { # Details about a resource which is being promoted. # The promotedItem object contains details about a resource which is being promoted. This property is only present if the snippet.type is promotedItem.
163        "ctaType": "A String", # The type of call-to-action, a message to the user indicating action that can be taken.
164        "adTag": "A String", # The URL the client should fetch to request a promoted item.
165        "destinationUrl": "A String", # The URL the client should direct the user to, if the user chooses to visit the advertiser's website.
166        "forecastingUrl": [ # The list of forecasting URLs. The client should ping all of these URLs when a promoted item is not available, to indicate that a promoted item could have been shown.
167          "A String",
168        ],
169        "impressionUrl": [ # The list of impression URLs. The client should ping all of these URLs to indicate that the user was shown this promoted item.
170          "A String",
171        ],
172        "creativeViewUrl": "A String", # The URL the client should ping to indicate that the user was shown this promoted item.
173        "videoId": "A String", # The ID that YouTube uses to uniquely identify the promoted video.
174        "descriptionText": "A String", # The text description to accompany the promoted item.
175        "customCtaButtonText": "A String", # The custom call-to-action button text. If specified, it will override the default button text for the cta_type.
176        "clickTrackingUrl": "A String", # The URL the client should ping to indicate that the user clicked through on this promoted item.
177      },
178      "social": { # Details about a social network post. # The social object contains details about a social network post. This property is only present if the snippet.type is social.
179        "resourceId": { # A resource id is a generic reference that points to another YouTube resource. # The resourceId object encapsulates information that identifies the resource associated with a social network post.
180          "kind": "A String", # The type of the API resource.
181          "channelId": "A String", # The ID that YouTube uses to uniquely identify the referred resource, if that resource is a channel. This property is only present if the resourceId.kind value is youtube#channel.
182          "playlistId": "A String", # The ID that YouTube uses to uniquely identify the referred resource, if that resource is a playlist. This property is only present if the resourceId.kind value is youtube#playlist.
183          "videoId": "A String", # The ID that YouTube uses to uniquely identify the referred resource, if that resource is a video. This property is only present if the resourceId.kind value is youtube#video.
184        },
185        "imageUrl": "A String", # An image of the post's author.
186        "type": "A String", # The name of the social network.
187        "referenceUrl": "A String", # The URL of the social network post.
188        "author": "A String", # The author of the social network post.
189      },
190      "favorite": { # Information about a video that was marked as a favorite video. # The favorite object contains information about a video that was marked as a favorite video. This property is only present if the snippet.type is favorite.
191        "resourceId": { # A resource id is a generic reference that points to another YouTube resource. # The resourceId object contains information that identifies the resource that was marked as a favorite.
192          "kind": "A String", # The type of the API resource.
193          "channelId": "A String", # The ID that YouTube uses to uniquely identify the referred resource, if that resource is a channel. This property is only present if the resourceId.kind value is youtube#channel.
194          "playlistId": "A String", # The ID that YouTube uses to uniquely identify the referred resource, if that resource is a playlist. This property is only present if the resourceId.kind value is youtube#playlist.
195          "videoId": "A String", # The ID that YouTube uses to uniquely identify the referred resource, if that resource is a video. This property is only present if the resourceId.kind value is youtube#video.
196        },
197      },
198      "upload": { # Information about the uploaded video. # The upload object contains information about the uploaded video. This property is only present if the snippet.type is upload.
199        "videoId": "A String", # The ID that YouTube uses to uniquely identify the uploaded video.
200      },
201      "recommendation": { # Information that identifies the recommended resource. # The recommendation object contains information about a recommended resource. This property is only present if the snippet.type is recommendation.
202        "resourceId": { # A resource id is a generic reference that points to another YouTube resource. # The resourceId object contains information that identifies the recommended resource.
203          "kind": "A String", # The type of the API resource.
204          "channelId": "A String", # The ID that YouTube uses to uniquely identify the referred resource, if that resource is a channel. This property is only present if the resourceId.kind value is youtube#channel.
205          "playlistId": "A String", # The ID that YouTube uses to uniquely identify the referred resource, if that resource is a playlist. This property is only present if the resourceId.kind value is youtube#playlist.
206          "videoId": "A String", # The ID that YouTube uses to uniquely identify the referred resource, if that resource is a video. This property is only present if the resourceId.kind value is youtube#video.
207        },
208        "reason": "A String", # The reason that the resource is recommended to the user.
209        "seedResourceId": { # A resource id is a generic reference that points to another YouTube resource. # The seedResourceId object contains information about the resource that caused the recommendation.
210          "kind": "A String", # The type of the API resource.
211          "channelId": "A String", # The ID that YouTube uses to uniquely identify the referred resource, if that resource is a channel. This property is only present if the resourceId.kind value is youtube#channel.
212          "playlistId": "A String", # The ID that YouTube uses to uniquely identify the referred resource, if that resource is a playlist. This property is only present if the resourceId.kind value is youtube#playlist.
213          "videoId": "A String", # The ID that YouTube uses to uniquely identify the referred resource, if that resource is a video. This property is only present if the resourceId.kind value is youtube#video.
214        },
215      },
216      "subscription": { # Information about a channel that a user subscribed to. # The subscription object contains information about a channel that a user subscribed to. This property is only present if the snippet.type is subscription.
217        "resourceId": { # A resource id is a generic reference that points to another YouTube resource. # The resourceId object contains information that identifies the resource that the user subscribed to.
218          "kind": "A String", # The type of the API resource.
219          "channelId": "A String", # The ID that YouTube uses to uniquely identify the referred resource, if that resource is a channel. This property is only present if the resourceId.kind value is youtube#channel.
220          "playlistId": "A String", # The ID that YouTube uses to uniquely identify the referred resource, if that resource is a playlist. This property is only present if the resourceId.kind value is youtube#playlist.
221          "videoId": "A String", # The ID that YouTube uses to uniquely identify the referred resource, if that resource is a video. This property is only present if the resourceId.kind value is youtube#video.
222        },
223      },
224      "bulletin": { # Details about a channel bulletin post. # The bulletin object contains details about a channel bulletin post. This object is only present if the snippet.type is bulletin.
225        "resourceId": { # A resource id is a generic reference that points to another YouTube resource. # The resourceId object contains information that identifies the resource associated with a bulletin post.
226          "kind": "A String", # The type of the API resource.
227          "channelId": "A String", # The ID that YouTube uses to uniquely identify the referred resource, if that resource is a channel. This property is only present if the resourceId.kind value is youtube#channel.
228          "playlistId": "A String", # The ID that YouTube uses to uniquely identify the referred resource, if that resource is a playlist. This property is only present if the resourceId.kind value is youtube#playlist.
229          "videoId": "A String", # The ID that YouTube uses to uniquely identify the referred resource, if that resource is a video. This property is only present if the resourceId.kind value is youtube#video.
230        },
231      },
232      "channelItem": { # Details about a resource which was added to a channel. # The channelItem object contains details about a resource which was added to a channel. This property is only present if the snippet.type is channelItem.
233        "resourceId": { # A resource id is a generic reference that points to another YouTube resource. # The resourceId object contains information that identifies the resource that was added to the channel.
234          "kind": "A String", # The type of the API resource.
235          "channelId": "A String", # The ID that YouTube uses to uniquely identify the referred resource, if that resource is a channel. This property is only present if the resourceId.kind value is youtube#channel.
236          "playlistId": "A String", # The ID that YouTube uses to uniquely identify the referred resource, if that resource is a playlist. This property is only present if the resourceId.kind value is youtube#playlist.
237          "videoId": "A String", # The ID that YouTube uses to uniquely identify the referred resource, if that resource is a video. This property is only present if the resourceId.kind value is youtube#video.
238        },
239      },
240    },
241    "kind": "youtube#activity", # Identifies what kind of resource this is. Value: the fixed string "youtube#activity".
242    "etag": "A String", # Etag of this resource.
243    "id": "A String", # The ID that YouTube uses to uniquely identify the activity.
244  }
245
246
247Returns:
248  An object of the form:
249
250    { # An activity resource contains information about an action that a particular channel, or user, has taken on YouTube.The actions reported in activity feeds include rating a video, sharing a video, marking a video as a favorite, commenting on a video, uploading a video, and so forth. Each activity resource identifies the type of action, the channel associated with the action, and the resource(s) associated with the action, such as the video that was rated or uploaded.
251      "snippet": { # Basic details about an activity, including title, description, thumbnails, activity type and group. # The snippet object contains basic details about the activity, including the activity's type and group ID.
252        "thumbnails": { # Internal representation of thumbnails for a YouTube resource. # A map of thumbnail images associated with the resource that is primarily associated with the activity. For each object in the map, the key is the name of the thumbnail image, and the value is an object that contains other information about the thumbnail.
253          "default": { # A thumbnail is an image representing a YouTube resource. # The default image for this resource.
254            "url": "A String", # The thumbnail image's URL.
255            "width": 42, # (Optional) Width of the thumbnail image.
256            "height": 42, # (Optional) Height of the thumbnail image.
257          },
258          "high": { # A thumbnail is an image representing a YouTube resource. # The high quality image for this resource.
259            "url": "A String", # The thumbnail image's URL.
260            "width": 42, # (Optional) Width of the thumbnail image.
261            "height": 42, # (Optional) Height of the thumbnail image.
262          },
263          "medium": { # A thumbnail is an image representing a YouTube resource. # The medium quality image for this resource.
264            "url": "A String", # The thumbnail image's URL.
265            "width": 42, # (Optional) Width of the thumbnail image.
266            "height": 42, # (Optional) Height of the thumbnail image.
267          },
268          "maxres": { # A thumbnail is an image representing a YouTube resource. # The maximum resolution quality image for this resource.
269            "url": "A String", # The thumbnail image's URL.
270            "width": 42, # (Optional) Width of the thumbnail image.
271            "height": 42, # (Optional) Height of the thumbnail image.
272          },
273          "standard": { # A thumbnail is an image representing a YouTube resource. # The standard quality image for this resource.
274            "url": "A String", # The thumbnail image's URL.
275            "width": 42, # (Optional) Width of the thumbnail image.
276            "height": 42, # (Optional) Height of the thumbnail image.
277          },
278        },
279        "title": "A String", # The title of the resource primarily associated with the activity.
280        "channelId": "A String", # The ID that YouTube uses to uniquely identify the channel associated with the activity.
281        "publishedAt": "A String", # The date and time that the video was uploaded. The value is specified in ISO 8601 (YYYY-MM-DDThh:mm:ss.sZ) format.
282        "channelTitle": "A String", # Channel title for the channel responsible for this activity
283        "type": "A String", # The type of activity that the resource describes.
284        "groupId": "A String", # The group ID associated with the activity. A group ID identifies user events that are associated with the same user and resource. For example, if a user rates a video and marks the same video as a favorite, the entries for those events would have the same group ID in the user's activity feed. In your user interface, you can avoid repetition by grouping events with the same groupId value.
285        "description": "A String", # The description of the resource primarily associated with the activity.
286      },
287      "contentDetails": { # Details about the content of an activity: the video that was shared, the channel that was subscribed to, etc. # The contentDetails object contains information about the content associated with the activity. For example, if the snippet.type value is videoRated, then the contentDetails object's content identifies the rated video.
288        "comment": { # Information about a resource that received a comment. # The comment object contains information about a resource that received a comment. This property is only present if the snippet.type is comment.
289          "resourceId": { # A resource id is a generic reference that points to another YouTube resource. # The resourceId object contains information that identifies the resource associated with the comment.
290            "kind": "A String", # The type of the API resource.
291            "channelId": "A String", # The ID that YouTube uses to uniquely identify the referred resource, if that resource is a channel. This property is only present if the resourceId.kind value is youtube#channel.
292            "playlistId": "A String", # The ID that YouTube uses to uniquely identify the referred resource, if that resource is a playlist. This property is only present if the resourceId.kind value is youtube#playlist.
293            "videoId": "A String", # The ID that YouTube uses to uniquely identify the referred resource, if that resource is a video. This property is only present if the resourceId.kind value is youtube#video.
294          },
295        },
296        "playlistItem": { # Information about a new playlist item. # The playlistItem object contains information about a new playlist item. This property is only present if the snippet.type is playlistItem.
297          "resourceId": { # A resource id is a generic reference that points to another YouTube resource. # The resourceId object contains information about the resource that was added to the playlist.
298            "kind": "A String", # The type of the API resource.
299            "channelId": "A String", # The ID that YouTube uses to uniquely identify the referred resource, if that resource is a channel. This property is only present if the resourceId.kind value is youtube#channel.
300            "playlistId": "A String", # The ID that YouTube uses to uniquely identify the referred resource, if that resource is a playlist. This property is only present if the resourceId.kind value is youtube#playlist.
301            "videoId": "A String", # The ID that YouTube uses to uniquely identify the referred resource, if that resource is a video. This property is only present if the resourceId.kind value is youtube#video.
302          },
303          "playlistId": "A String", # The value that YouTube uses to uniquely identify the playlist.
304          "playlistItemId": "A String", # ID of the item within the playlist.
305        },
306        "like": { # Information about a resource that received a positive (like) rating. # The like object contains information about a resource that received a positive (like) rating. This property is only present if the snippet.type is like.
307          "resourceId": { # A resource id is a generic reference that points to another YouTube resource. # The resourceId object contains information that identifies the rated resource.
308            "kind": "A String", # The type of the API resource.
309            "channelId": "A String", # The ID that YouTube uses to uniquely identify the referred resource, if that resource is a channel. This property is only present if the resourceId.kind value is youtube#channel.
310            "playlistId": "A String", # The ID that YouTube uses to uniquely identify the referred resource, if that resource is a playlist. This property is only present if the resourceId.kind value is youtube#playlist.
311            "videoId": "A String", # The ID that YouTube uses to uniquely identify the referred resource, if that resource is a video. This property is only present if the resourceId.kind value is youtube#video.
312          },
313        },
314        "promotedItem": { # Details about a resource which is being promoted. # The promotedItem object contains details about a resource which is being promoted. This property is only present if the snippet.type is promotedItem.
315          "ctaType": "A String", # The type of call-to-action, a message to the user indicating action that can be taken.
316          "adTag": "A String", # The URL the client should fetch to request a promoted item.
317          "destinationUrl": "A String", # The URL the client should direct the user to, if the user chooses to visit the advertiser's website.
318          "forecastingUrl": [ # The list of forecasting URLs. The client should ping all of these URLs when a promoted item is not available, to indicate that a promoted item could have been shown.
319            "A String",
320          ],
321          "impressionUrl": [ # The list of impression URLs. The client should ping all of these URLs to indicate that the user was shown this promoted item.
322            "A String",
323          ],
324          "creativeViewUrl": "A String", # The URL the client should ping to indicate that the user was shown this promoted item.
325          "videoId": "A String", # The ID that YouTube uses to uniquely identify the promoted video.
326          "descriptionText": "A String", # The text description to accompany the promoted item.
327          "customCtaButtonText": "A String", # The custom call-to-action button text. If specified, it will override the default button text for the cta_type.
328          "clickTrackingUrl": "A String", # The URL the client should ping to indicate that the user clicked through on this promoted item.
329        },
330        "social": { # Details about a social network post. # The social object contains details about a social network post. This property is only present if the snippet.type is social.
331          "resourceId": { # A resource id is a generic reference that points to another YouTube resource. # The resourceId object encapsulates information that identifies the resource associated with a social network post.
332            "kind": "A String", # The type of the API resource.
333            "channelId": "A String", # The ID that YouTube uses to uniquely identify the referred resource, if that resource is a channel. This property is only present if the resourceId.kind value is youtube#channel.
334            "playlistId": "A String", # The ID that YouTube uses to uniquely identify the referred resource, if that resource is a playlist. This property is only present if the resourceId.kind value is youtube#playlist.
335            "videoId": "A String", # The ID that YouTube uses to uniquely identify the referred resource, if that resource is a video. This property is only present if the resourceId.kind value is youtube#video.
336          },
337          "imageUrl": "A String", # An image of the post's author.
338          "type": "A String", # The name of the social network.
339          "referenceUrl": "A String", # The URL of the social network post.
340          "author": "A String", # The author of the social network post.
341        },
342        "favorite": { # Information about a video that was marked as a favorite video. # The favorite object contains information about a video that was marked as a favorite video. This property is only present if the snippet.type is favorite.
343          "resourceId": { # A resource id is a generic reference that points to another YouTube resource. # The resourceId object contains information that identifies the resource that was marked as a favorite.
344            "kind": "A String", # The type of the API resource.
345            "channelId": "A String", # The ID that YouTube uses to uniquely identify the referred resource, if that resource is a channel. This property is only present if the resourceId.kind value is youtube#channel.
346            "playlistId": "A String", # The ID that YouTube uses to uniquely identify the referred resource, if that resource is a playlist. This property is only present if the resourceId.kind value is youtube#playlist.
347            "videoId": "A String", # The ID that YouTube uses to uniquely identify the referred resource, if that resource is a video. This property is only present if the resourceId.kind value is youtube#video.
348          },
349        },
350        "upload": { # Information about the uploaded video. # The upload object contains information about the uploaded video. This property is only present if the snippet.type is upload.
351          "videoId": "A String", # The ID that YouTube uses to uniquely identify the uploaded video.
352        },
353        "recommendation": { # Information that identifies the recommended resource. # The recommendation object contains information about a recommended resource. This property is only present if the snippet.type is recommendation.
354          "resourceId": { # A resource id is a generic reference that points to another YouTube resource. # The resourceId object contains information that identifies the recommended resource.
355            "kind": "A String", # The type of the API resource.
356            "channelId": "A String", # The ID that YouTube uses to uniquely identify the referred resource, if that resource is a channel. This property is only present if the resourceId.kind value is youtube#channel.
357            "playlistId": "A String", # The ID that YouTube uses to uniquely identify the referred resource, if that resource is a playlist. This property is only present if the resourceId.kind value is youtube#playlist.
358            "videoId": "A String", # The ID that YouTube uses to uniquely identify the referred resource, if that resource is a video. This property is only present if the resourceId.kind value is youtube#video.
359          },
360          "reason": "A String", # The reason that the resource is recommended to the user.
361          "seedResourceId": { # A resource id is a generic reference that points to another YouTube resource. # The seedResourceId object contains information about the resource that caused the recommendation.
362            "kind": "A String", # The type of the API resource.
363            "channelId": "A String", # The ID that YouTube uses to uniquely identify the referred resource, if that resource is a channel. This property is only present if the resourceId.kind value is youtube#channel.
364            "playlistId": "A String", # The ID that YouTube uses to uniquely identify the referred resource, if that resource is a playlist. This property is only present if the resourceId.kind value is youtube#playlist.
365            "videoId": "A String", # The ID that YouTube uses to uniquely identify the referred resource, if that resource is a video. This property is only present if the resourceId.kind value is youtube#video.
366          },
367        },
368        "subscription": { # Information about a channel that a user subscribed to. # The subscription object contains information about a channel that a user subscribed to. This property is only present if the snippet.type is subscription.
369          "resourceId": { # A resource id is a generic reference that points to another YouTube resource. # The resourceId object contains information that identifies the resource that the user subscribed to.
370            "kind": "A String", # The type of the API resource.
371            "channelId": "A String", # The ID that YouTube uses to uniquely identify the referred resource, if that resource is a channel. This property is only present if the resourceId.kind value is youtube#channel.
372            "playlistId": "A String", # The ID that YouTube uses to uniquely identify the referred resource, if that resource is a playlist. This property is only present if the resourceId.kind value is youtube#playlist.
373            "videoId": "A String", # The ID that YouTube uses to uniquely identify the referred resource, if that resource is a video. This property is only present if the resourceId.kind value is youtube#video.
374          },
375        },
376        "bulletin": { # Details about a channel bulletin post. # The bulletin object contains details about a channel bulletin post. This object is only present if the snippet.type is bulletin.
377          "resourceId": { # A resource id is a generic reference that points to another YouTube resource. # The resourceId object contains information that identifies the resource associated with a bulletin post.
378            "kind": "A String", # The type of the API resource.
379            "channelId": "A String", # The ID that YouTube uses to uniquely identify the referred resource, if that resource is a channel. This property is only present if the resourceId.kind value is youtube#channel.
380            "playlistId": "A String", # The ID that YouTube uses to uniquely identify the referred resource, if that resource is a playlist. This property is only present if the resourceId.kind value is youtube#playlist.
381            "videoId": "A String", # The ID that YouTube uses to uniquely identify the referred resource, if that resource is a video. This property is only present if the resourceId.kind value is youtube#video.
382          },
383        },
384        "channelItem": { # Details about a resource which was added to a channel. # The channelItem object contains details about a resource which was added to a channel. This property is only present if the snippet.type is channelItem.
385          "resourceId": { # A resource id is a generic reference that points to another YouTube resource. # The resourceId object contains information that identifies the resource that was added to the channel.
386            "kind": "A String", # The type of the API resource.
387            "channelId": "A String", # The ID that YouTube uses to uniquely identify the referred resource, if that resource is a channel. This property is only present if the resourceId.kind value is youtube#channel.
388            "playlistId": "A String", # The ID that YouTube uses to uniquely identify the referred resource, if that resource is a playlist. This property is only present if the resourceId.kind value is youtube#playlist.
389            "videoId": "A String", # The ID that YouTube uses to uniquely identify the referred resource, if that resource is a video. This property is only present if the resourceId.kind value is youtube#video.
390          },
391        },
392      },
393      "kind": "youtube#activity", # Identifies what kind of resource this is. Value: the fixed string "youtube#activity".
394      "etag": "A String", # Etag of this resource.
395      "id": "A String", # The ID that YouTube uses to uniquely identify the activity.
396    }</pre>
397</div>
398
399<div class="method">
400    <code class="details" id="list">list(part, pageToken=None, publishedBefore=None, channelId=None, mine=None, maxResults=None, regionCode=None, home=None, publishedAfter=None)</code>
401  <pre>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.
402
403Args:
404  part: string, The part parameter specifies a comma-separated list of one or more activity resource properties that the API response will include.
405
406If 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. (required)
407  pageToken: string, The pageToken parameter identifies a specific page in the result set that should be returned. In an API response, the nextPageToken and prevPageToken properties identify other pages that could be retrieved.
408  publishedBefore: string, The publishedBefore parameter specifies the date and time before which an activity must have occurred for that activity to be included in the API response. If the parameter value specifies a day, but not a time, then any activities that occurred that day will be excluded from the result set. The value is specified in ISO 8601 (YYYY-MM-DDThh:mm:ss.sZ) format.
409  channelId: string, The channelId parameter specifies a unique YouTube channel ID. The API will then return a list of that channel's activities.
410  mine: boolean, Set this parameter's value to true to retrieve a feed of the authenticated user's activities.
411  maxResults: integer, The maxResults parameter specifies the maximum number of items that should be returned in the result set.
412  regionCode: string, The regionCode parameter instructs the API to return results for the specified country. The parameter value is an ISO 3166-1 alpha-2 country code. YouTube uses this value when the authorized user's previous activity on YouTube does not provide enough information to generate the activity feed.
413  home: boolean, Set this parameter's value to true to retrieve the activity feed that displays on the YouTube home page for the currently authenticated user.
414  publishedAfter: string, The publishedAfter parameter specifies the earliest date and time that an activity could have occurred for that activity to be included in the API response. If the parameter value specifies a day, but not a time, then any activities that occurred that day will be included in the result set. The value is specified in ISO 8601 (YYYY-MM-DDThh:mm:ss.sZ) format.
415
416Returns:
417  An object of the form:
418
419    {
420    "eventId": "A String", # Serialized EventId of the request which produced this response.
421    "nextPageToken": "A String", # The token that can be used as the value of the pageToken parameter to retrieve the next page in the result set.
422    "kind": "youtube#activityListResponse", # Identifies what kind of resource this is. Value: the fixed string "youtube#activityListResponse".
423    "visitorId": "A String", # The visitorId identifies the visitor.
424    "items": [ # A list of activities, or events, that match the request criteria.
425      { # An activity resource contains information about an action that a particular channel, or user, has taken on YouTube.The actions reported in activity feeds include rating a video, sharing a video, marking a video as a favorite, commenting on a video, uploading a video, and so forth. Each activity resource identifies the type of action, the channel associated with the action, and the resource(s) associated with the action, such as the video that was rated or uploaded.
426          "snippet": { # Basic details about an activity, including title, description, thumbnails, activity type and group. # The snippet object contains basic details about the activity, including the activity's type and group ID.
427            "thumbnails": { # Internal representation of thumbnails for a YouTube resource. # A map of thumbnail images associated with the resource that is primarily associated with the activity. For each object in the map, the key is the name of the thumbnail image, and the value is an object that contains other information about the thumbnail.
428              "default": { # A thumbnail is an image representing a YouTube resource. # The default image for this resource.
429                "url": "A String", # The thumbnail image's URL.
430                "width": 42, # (Optional) Width of the thumbnail image.
431                "height": 42, # (Optional) Height of the thumbnail image.
432              },
433              "high": { # A thumbnail is an image representing a YouTube resource. # The high quality image for this resource.
434                "url": "A String", # The thumbnail image's URL.
435                "width": 42, # (Optional) Width of the thumbnail image.
436                "height": 42, # (Optional) Height of the thumbnail image.
437              },
438              "medium": { # A thumbnail is an image representing a YouTube resource. # The medium quality image for this resource.
439                "url": "A String", # The thumbnail image's URL.
440                "width": 42, # (Optional) Width of the thumbnail image.
441                "height": 42, # (Optional) Height of the thumbnail image.
442              },
443              "maxres": { # A thumbnail is an image representing a YouTube resource. # The maximum resolution quality image for this resource.
444                "url": "A String", # The thumbnail image's URL.
445                "width": 42, # (Optional) Width of the thumbnail image.
446                "height": 42, # (Optional) Height of the thumbnail image.
447              },
448              "standard": { # A thumbnail is an image representing a YouTube resource. # The standard quality image for this resource.
449                "url": "A String", # The thumbnail image's URL.
450                "width": 42, # (Optional) Width of the thumbnail image.
451                "height": 42, # (Optional) Height of the thumbnail image.
452              },
453            },
454            "title": "A String", # The title of the resource primarily associated with the activity.
455            "channelId": "A String", # The ID that YouTube uses to uniquely identify the channel associated with the activity.
456            "publishedAt": "A String", # The date and time that the video was uploaded. The value is specified in ISO 8601 (YYYY-MM-DDThh:mm:ss.sZ) format.
457            "channelTitle": "A String", # Channel title for the channel responsible for this activity
458            "type": "A String", # The type of activity that the resource describes.
459            "groupId": "A String", # The group ID associated with the activity. A group ID identifies user events that are associated with the same user and resource. For example, if a user rates a video and marks the same video as a favorite, the entries for those events would have the same group ID in the user's activity feed. In your user interface, you can avoid repetition by grouping events with the same groupId value.
460            "description": "A String", # The description of the resource primarily associated with the activity.
461          },
462          "contentDetails": { # Details about the content of an activity: the video that was shared, the channel that was subscribed to, etc. # The contentDetails object contains information about the content associated with the activity. For example, if the snippet.type value is videoRated, then the contentDetails object's content identifies the rated video.
463            "comment": { # Information about a resource that received a comment. # The comment object contains information about a resource that received a comment. This property is only present if the snippet.type is comment.
464              "resourceId": { # A resource id is a generic reference that points to another YouTube resource. # The resourceId object contains information that identifies the resource associated with the comment.
465                "kind": "A String", # The type of the API resource.
466                "channelId": "A String", # The ID that YouTube uses to uniquely identify the referred resource, if that resource is a channel. This property is only present if the resourceId.kind value is youtube#channel.
467                "playlistId": "A String", # The ID that YouTube uses to uniquely identify the referred resource, if that resource is a playlist. This property is only present if the resourceId.kind value is youtube#playlist.
468                "videoId": "A String", # The ID that YouTube uses to uniquely identify the referred resource, if that resource is a video. This property is only present if the resourceId.kind value is youtube#video.
469              },
470            },
471            "playlistItem": { # Information about a new playlist item. # The playlistItem object contains information about a new playlist item. This property is only present if the snippet.type is playlistItem.
472              "resourceId": { # A resource id is a generic reference that points to another YouTube resource. # The resourceId object contains information about the resource that was added to the playlist.
473                "kind": "A String", # The type of the API resource.
474                "channelId": "A String", # The ID that YouTube uses to uniquely identify the referred resource, if that resource is a channel. This property is only present if the resourceId.kind value is youtube#channel.
475                "playlistId": "A String", # The ID that YouTube uses to uniquely identify the referred resource, if that resource is a playlist. This property is only present if the resourceId.kind value is youtube#playlist.
476                "videoId": "A String", # The ID that YouTube uses to uniquely identify the referred resource, if that resource is a video. This property is only present if the resourceId.kind value is youtube#video.
477              },
478              "playlistId": "A String", # The value that YouTube uses to uniquely identify the playlist.
479              "playlistItemId": "A String", # ID of the item within the playlist.
480            },
481            "like": { # Information about a resource that received a positive (like) rating. # The like object contains information about a resource that received a positive (like) rating. This property is only present if the snippet.type is like.
482              "resourceId": { # A resource id is a generic reference that points to another YouTube resource. # The resourceId object contains information that identifies the rated resource.
483                "kind": "A String", # The type of the API resource.
484                "channelId": "A String", # The ID that YouTube uses to uniquely identify the referred resource, if that resource is a channel. This property is only present if the resourceId.kind value is youtube#channel.
485                "playlistId": "A String", # The ID that YouTube uses to uniquely identify the referred resource, if that resource is a playlist. This property is only present if the resourceId.kind value is youtube#playlist.
486                "videoId": "A String", # The ID that YouTube uses to uniquely identify the referred resource, if that resource is a video. This property is only present if the resourceId.kind value is youtube#video.
487              },
488            },
489            "promotedItem": { # Details about a resource which is being promoted. # The promotedItem object contains details about a resource which is being promoted. This property is only present if the snippet.type is promotedItem.
490              "ctaType": "A String", # The type of call-to-action, a message to the user indicating action that can be taken.
491              "adTag": "A String", # The URL the client should fetch to request a promoted item.
492              "destinationUrl": "A String", # The URL the client should direct the user to, if the user chooses to visit the advertiser's website.
493              "forecastingUrl": [ # The list of forecasting URLs. The client should ping all of these URLs when a promoted item is not available, to indicate that a promoted item could have been shown.
494                "A String",
495              ],
496              "impressionUrl": [ # The list of impression URLs. The client should ping all of these URLs to indicate that the user was shown this promoted item.
497                "A String",
498              ],
499              "creativeViewUrl": "A String", # The URL the client should ping to indicate that the user was shown this promoted item.
500              "videoId": "A String", # The ID that YouTube uses to uniquely identify the promoted video.
501              "descriptionText": "A String", # The text description to accompany the promoted item.
502              "customCtaButtonText": "A String", # The custom call-to-action button text. If specified, it will override the default button text for the cta_type.
503              "clickTrackingUrl": "A String", # The URL the client should ping to indicate that the user clicked through on this promoted item.
504            },
505            "social": { # Details about a social network post. # The social object contains details about a social network post. This property is only present if the snippet.type is social.
506              "resourceId": { # A resource id is a generic reference that points to another YouTube resource. # The resourceId object encapsulates information that identifies the resource associated with a social network post.
507                "kind": "A String", # The type of the API resource.
508                "channelId": "A String", # The ID that YouTube uses to uniquely identify the referred resource, if that resource is a channel. This property is only present if the resourceId.kind value is youtube#channel.
509                "playlistId": "A String", # The ID that YouTube uses to uniquely identify the referred resource, if that resource is a playlist. This property is only present if the resourceId.kind value is youtube#playlist.
510                "videoId": "A String", # The ID that YouTube uses to uniquely identify the referred resource, if that resource is a video. This property is only present if the resourceId.kind value is youtube#video.
511              },
512              "imageUrl": "A String", # An image of the post's author.
513              "type": "A String", # The name of the social network.
514              "referenceUrl": "A String", # The URL of the social network post.
515              "author": "A String", # The author of the social network post.
516            },
517            "favorite": { # Information about a video that was marked as a favorite video. # The favorite object contains information about a video that was marked as a favorite video. This property is only present if the snippet.type is favorite.
518              "resourceId": { # A resource id is a generic reference that points to another YouTube resource. # The resourceId object contains information that identifies the resource that was marked as a favorite.
519                "kind": "A String", # The type of the API resource.
520                "channelId": "A String", # The ID that YouTube uses to uniquely identify the referred resource, if that resource is a channel. This property is only present if the resourceId.kind value is youtube#channel.
521                "playlistId": "A String", # The ID that YouTube uses to uniquely identify the referred resource, if that resource is a playlist. This property is only present if the resourceId.kind value is youtube#playlist.
522                "videoId": "A String", # The ID that YouTube uses to uniquely identify the referred resource, if that resource is a video. This property is only present if the resourceId.kind value is youtube#video.
523              },
524            },
525            "upload": { # Information about the uploaded video. # The upload object contains information about the uploaded video. This property is only present if the snippet.type is upload.
526              "videoId": "A String", # The ID that YouTube uses to uniquely identify the uploaded video.
527            },
528            "recommendation": { # Information that identifies the recommended resource. # The recommendation object contains information about a recommended resource. This property is only present if the snippet.type is recommendation.
529              "resourceId": { # A resource id is a generic reference that points to another YouTube resource. # The resourceId object contains information that identifies the recommended resource.
530                "kind": "A String", # The type of the API resource.
531                "channelId": "A String", # The ID that YouTube uses to uniquely identify the referred resource, if that resource is a channel. This property is only present if the resourceId.kind value is youtube#channel.
532                "playlistId": "A String", # The ID that YouTube uses to uniquely identify the referred resource, if that resource is a playlist. This property is only present if the resourceId.kind value is youtube#playlist.
533                "videoId": "A String", # The ID that YouTube uses to uniquely identify the referred resource, if that resource is a video. This property is only present if the resourceId.kind value is youtube#video.
534              },
535              "reason": "A String", # The reason that the resource is recommended to the user.
536              "seedResourceId": { # A resource id is a generic reference that points to another YouTube resource. # The seedResourceId object contains information about the resource that caused the recommendation.
537                "kind": "A String", # The type of the API resource.
538                "channelId": "A String", # The ID that YouTube uses to uniquely identify the referred resource, if that resource is a channel. This property is only present if the resourceId.kind value is youtube#channel.
539                "playlistId": "A String", # The ID that YouTube uses to uniquely identify the referred resource, if that resource is a playlist. This property is only present if the resourceId.kind value is youtube#playlist.
540                "videoId": "A String", # The ID that YouTube uses to uniquely identify the referred resource, if that resource is a video. This property is only present if the resourceId.kind value is youtube#video.
541              },
542            },
543            "subscription": { # Information about a channel that a user subscribed to. # The subscription object contains information about a channel that a user subscribed to. This property is only present if the snippet.type is subscription.
544              "resourceId": { # A resource id is a generic reference that points to another YouTube resource. # The resourceId object contains information that identifies the resource that the user subscribed to.
545                "kind": "A String", # The type of the API resource.
546                "channelId": "A String", # The ID that YouTube uses to uniquely identify the referred resource, if that resource is a channel. This property is only present if the resourceId.kind value is youtube#channel.
547                "playlistId": "A String", # The ID that YouTube uses to uniquely identify the referred resource, if that resource is a playlist. This property is only present if the resourceId.kind value is youtube#playlist.
548                "videoId": "A String", # The ID that YouTube uses to uniquely identify the referred resource, if that resource is a video. This property is only present if the resourceId.kind value is youtube#video.
549              },
550            },
551            "bulletin": { # Details about a channel bulletin post. # The bulletin object contains details about a channel bulletin post. This object is only present if the snippet.type is bulletin.
552              "resourceId": { # A resource id is a generic reference that points to another YouTube resource. # The resourceId object contains information that identifies the resource associated with a bulletin post.
553                "kind": "A String", # The type of the API resource.
554                "channelId": "A String", # The ID that YouTube uses to uniquely identify the referred resource, if that resource is a channel. This property is only present if the resourceId.kind value is youtube#channel.
555                "playlistId": "A String", # The ID that YouTube uses to uniquely identify the referred resource, if that resource is a playlist. This property is only present if the resourceId.kind value is youtube#playlist.
556                "videoId": "A String", # The ID that YouTube uses to uniquely identify the referred resource, if that resource is a video. This property is only present if the resourceId.kind value is youtube#video.
557              },
558            },
559            "channelItem": { # Details about a resource which was added to a channel. # The channelItem object contains details about a resource which was added to a channel. This property is only present if the snippet.type is channelItem.
560              "resourceId": { # A resource id is a generic reference that points to another YouTube resource. # The resourceId object contains information that identifies the resource that was added to the channel.
561                "kind": "A String", # The type of the API resource.
562                "channelId": "A String", # The ID that YouTube uses to uniquely identify the referred resource, if that resource is a channel. This property is only present if the resourceId.kind value is youtube#channel.
563                "playlistId": "A String", # The ID that YouTube uses to uniquely identify the referred resource, if that resource is a playlist. This property is only present if the resourceId.kind value is youtube#playlist.
564                "videoId": "A String", # The ID that YouTube uses to uniquely identify the referred resource, if that resource is a video. This property is only present if the resourceId.kind value is youtube#video.
565              },
566            },
567          },
568          "kind": "youtube#activity", # Identifies what kind of resource this is. Value: the fixed string "youtube#activity".
569          "etag": "A String", # Etag of this resource.
570          "id": "A String", # The ID that YouTube uses to uniquely identify the activity.
571        },
572    ],
573    "tokenPagination": { # Stub token pagination template to suppress results.
574    },
575    "etag": "A String", # Etag of this resource.
576    "prevPageToken": "A String", # The token that can be used as the value of the pageToken parameter to retrieve the previous page in the result set.
577    "pageInfo": { # Paging details for lists of resources, including total number of items available and number of resources returned in a single page.
578      "totalResults": 42, # The total number of results in the result set.
579      "resultsPerPage": 42, # The number of results included in the API response.
580    },
581  }</pre>
582</div>
583
584<div class="method">
585    <code class="details" id="list_next">list_next(previous_request, previous_response)</code>
586  <pre>Retrieves the next page of results.
587
588Args:
589  previous_request: The request for the previous page. (required)
590  previous_response: The response from the request for the previous page. (required)
591
592Returns:
593  A request object that you can call 'execute()' on to request the next
594  page. Returns None if there are no more items in the collection.
595    </pre>
596</div>
597
598</body></html>