blob: 82b16dd31fa3897900274fc1c2441d08440f294a [file] [log] [blame]
John Asmuth614db982014-04-24 15:46:26 -04001<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
Bu Sun Kimd059ad82020-07-22 17:02:09 -070075<h1><a href="youtube_v3.html">YouTube Data API v3</a> . <a href="youtube_v3.subscriptions.html">subscriptions</a></h1>
John Asmuth614db982014-04-24 15:46:26 -040076<h2>Instance Methods</h2>
77<p class="toc_element">
Dmitry Frenkel3e17f892020-10-06 16:46:05 -070078 <code><a href="#close">close()</a></code></p>
79<p class="firstline">Close httplib2 connections.</p>
80<p class="toc_element">
Bu Sun Kimd059ad82020-07-22 17:02:09 -070081 <code><a href="#delete">delete(id, x__xgafv=None)</a></code></p>
82<p class="firstline">Deletes a resource.</p>
John Asmuth614db982014-04-24 15:46:26 -040083<p class="toc_element">
Bu Sun Kimd059ad82020-07-22 17:02:09 -070084 <code><a href="#insert">insert(part, body=None, x__xgafv=None)</a></code></p>
85<p class="firstline">Inserts a new resource into this collection.</p>
John Asmuth614db982014-04-24 15:46:26 -040086<p class="toc_element">
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -080087 <code><a href="#list">list(part, onBehalfOfContentOwner=None, order=None, pageToken=None, mine=None, id=None, myRecentSubscribers=None, maxResults=None, channelId=None, forChannelId=None, onBehalfOfContentOwnerChannel=None, mySubscribers=None, x__xgafv=None)</a></code></p>
Bu Sun Kimd059ad82020-07-22 17:02:09 -070088<p class="firstline">Retrieves a list of resources, possibly filtered.</p>
John Asmuth614db982014-04-24 15:46:26 -040089<p class="toc_element">
90 <code><a href="#list_next">list_next(previous_request, previous_response)</a></code></p>
91<p class="firstline">Retrieves the next page of results.</p>
92<h3>Method Details</h3>
93<div class="method">
Dmitry Frenkel3e17f892020-10-06 16:46:05 -070094 <code class="details" id="close">close()</code>
95 <pre>Close httplib2 connections.</pre>
96</div>
97
98<div class="method">
Bu Sun Kimd059ad82020-07-22 17:02:09 -070099 <code class="details" id="delete">delete(id, x__xgafv=None)</code>
100 <pre>Deletes a resource.
John Asmuth614db982014-04-24 15:46:26 -0400101
102Args:
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700103 id: string, A parameter (required)
104 x__xgafv: string, V1 error format.
105 Allowed values
106 1 - v1 error format
107 2 - v2 error format
John Asmuth614db982014-04-24 15:46:26 -0400108</pre>
109</div>
110
111<div class="method">
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700112 <code class="details" id="insert">insert(part, body=None, x__xgafv=None)</code>
113 <pre>Inserts a new resource into this collection.
John Asmuth614db982014-04-24 15:46:26 -0400114
115Args:
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700116 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) (repeated)
Dan O'Mearadd494642020-05-01 07:42:23 -0700117 body: object, The request body.
John Asmuth614db982014-04-24 15:46:26 -0400118 The object takes the form of:
119
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700120{ # A *subscription* resource contains information about a YouTube user subscription. A subscription notifies a user when new videos are added to a channel or when another user takes one of several actions on YouTube, such as uploading a video, rating a video, or commenting on a video.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800121 &quot;id&quot;: &quot;A String&quot;, # The ID that YouTube uses to uniquely identify the subscription.
122 &quot;contentDetails&quot;: { # Details about the content to witch a subscription refers. # The contentDetails object contains basic statistics about the subscription.
123 &quot;activityType&quot;: &quot;A String&quot;, # The type of activity this subscription is for (only uploads, everything).
124 &quot;totalItemCount&quot;: 42, # The approximate number of items that the subscription points to.
125 &quot;newItemCount&quot;: 42, # The number of new items in the subscription since its content was last read.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800126 },
127 &quot;snippet&quot;: { # Basic details about a subscription, including title, description and thumbnails of the subscribed item. # The snippet object contains basic details about the subscription, including its title and the channel that the user subscribed to.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800128 &quot;channelTitle&quot;: &quot;A String&quot;, # Channel title for the channel that the subscription belongs to.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800129 &quot;title&quot;: &quot;A String&quot;, # The subscription&#x27;s title.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800130 &quot;channelId&quot;: &quot;A String&quot;, # The ID that YouTube uses to uniquely identify the subscriber&#x27;s channel.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800131 &quot;description&quot;: &quot;A String&quot;, # The subscription&#x27;s details.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800132 &quot;publishedAt&quot;: &quot;A String&quot;, # The date and time that the subscription was created. The value is specified in ISO 8601 format.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800133 &quot;thumbnails&quot;: { # Internal representation of thumbnails for a YouTube resource. # A map of thumbnail images associated with the video. 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.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800134 &quot;medium&quot;: { # A thumbnail is an image representing a YouTube resource. # The medium quality image for this resource.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800135 &quot;height&quot;: 42, # (Optional) Height of the thumbnail image.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800136 &quot;url&quot;: &quot;A String&quot;, # The thumbnail image&#x27;s URL.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800137 &quot;width&quot;: 42, # (Optional) Width of the thumbnail image.
138 },
139 &quot;high&quot;: { # A thumbnail is an image representing a YouTube resource. # The high quality image for this resource.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800140 &quot;height&quot;: 42, # (Optional) Height of the thumbnail image.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800141 &quot;url&quot;: &quot;A String&quot;, # The thumbnail image&#x27;s URL.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800142 &quot;width&quot;: 42, # (Optional) Width of the thumbnail image.
143 },
144 &quot;standard&quot;: { # A thumbnail is an image representing a YouTube resource. # The standard quality image for this resource.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800145 &quot;height&quot;: 42, # (Optional) Height of the thumbnail image.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800146 &quot;url&quot;: &quot;A String&quot;, # The thumbnail image&#x27;s URL.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800147 &quot;width&quot;: 42, # (Optional) Width of the thumbnail image.
148 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800149 &quot;default&quot;: { # A thumbnail is an image representing a YouTube resource. # The default image for this resource.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800150 &quot;height&quot;: 42, # (Optional) Height of the thumbnail image.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800151 &quot;url&quot;: &quot;A String&quot;, # The thumbnail image&#x27;s URL.
152 &quot;width&quot;: 42, # (Optional) Width of the thumbnail image.
153 },
154 &quot;maxres&quot;: { # A thumbnail is an image representing a YouTube resource. # The maximum resolution quality image for this resource.
155 &quot;height&quot;: 42, # (Optional) Height of the thumbnail image.
156 &quot;url&quot;: &quot;A String&quot;, # The thumbnail image&#x27;s URL.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800157 &quot;width&quot;: 42, # (Optional) Width of the thumbnail image.
158 },
159 },
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800160 &quot;resourceId&quot;: { # A resource id is a generic reference that points to another YouTube resource. # The id object contains information about the channel that the user subscribed to.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800161 &quot;kind&quot;: &quot;A String&quot;, # The type of the API resource.
162 &quot;videoId&quot;: &quot;A String&quot;, # 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.
163 &quot;channelId&quot;: &quot;A String&quot;, # 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.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800164 &quot;playlistId&quot;: &quot;A String&quot;, # 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.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800165 },
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800166 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800167 &quot;etag&quot;: &quot;A String&quot;, # Etag of this resource.
168 &quot;kind&quot;: &quot;youtube#subscription&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;youtube#subscription&quot;.
169 &quot;subscriberSnippet&quot;: { # Basic details about a subscription&#x27;s subscriber including title, description, channel ID and thumbnails. # The subscriberSnippet object contains basic details about the subscriber.
170 &quot;description&quot;: &quot;A String&quot;, # The description of the subscriber.
171 &quot;title&quot;: &quot;A String&quot;, # The title of the subscriber.
172 &quot;thumbnails&quot;: { # Internal representation of thumbnails for a YouTube resource. # Thumbnails for this subscriber.
173 &quot;medium&quot;: { # A thumbnail is an image representing a YouTube resource. # The medium quality image for this resource.
174 &quot;height&quot;: 42, # (Optional) Height of the thumbnail image.
175 &quot;url&quot;: &quot;A String&quot;, # The thumbnail image&#x27;s URL.
176 &quot;width&quot;: 42, # (Optional) Width of the thumbnail image.
177 },
178 &quot;high&quot;: { # A thumbnail is an image representing a YouTube resource. # The high quality image for this resource.
179 &quot;height&quot;: 42, # (Optional) Height of the thumbnail image.
180 &quot;url&quot;: &quot;A String&quot;, # The thumbnail image&#x27;s URL.
181 &quot;width&quot;: 42, # (Optional) Width of the thumbnail image.
182 },
183 &quot;standard&quot;: { # A thumbnail is an image representing a YouTube resource. # The standard quality image for this resource.
184 &quot;height&quot;: 42, # (Optional) Height of the thumbnail image.
185 &quot;url&quot;: &quot;A String&quot;, # The thumbnail image&#x27;s URL.
186 &quot;width&quot;: 42, # (Optional) Width of the thumbnail image.
187 },
188 &quot;default&quot;: { # A thumbnail is an image representing a YouTube resource. # The default image for this resource.
189 &quot;height&quot;: 42, # (Optional) Height of the thumbnail image.
190 &quot;url&quot;: &quot;A String&quot;, # The thumbnail image&#x27;s URL.
191 &quot;width&quot;: 42, # (Optional) Width of the thumbnail image.
192 },
193 &quot;maxres&quot;: { # A thumbnail is an image representing a YouTube resource. # The maximum resolution quality image for this resource.
194 &quot;height&quot;: 42, # (Optional) Height of the thumbnail image.
195 &quot;url&quot;: &quot;A String&quot;, # The thumbnail image&#x27;s URL.
196 &quot;width&quot;: 42, # (Optional) Width of the thumbnail image.
197 },
198 },
199 &quot;channelId&quot;: &quot;A String&quot;, # The channel ID of the subscriber.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800200 },
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800201}
John Asmuth614db982014-04-24 15:46:26 -0400202
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700203 x__xgafv: string, V1 error format.
204 Allowed values
205 1 - v1 error format
206 2 - v2 error format
John Asmuth614db982014-04-24 15:46:26 -0400207
208Returns:
209 An object of the form:
210
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700211 { # A *subscription* resource contains information about a YouTube user subscription. A subscription notifies a user when new videos are added to a channel or when another user takes one of several actions on YouTube, such as uploading a video, rating a video, or commenting on a video.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800212 &quot;id&quot;: &quot;A String&quot;, # The ID that YouTube uses to uniquely identify the subscription.
213 &quot;contentDetails&quot;: { # Details about the content to witch a subscription refers. # The contentDetails object contains basic statistics about the subscription.
214 &quot;activityType&quot;: &quot;A String&quot;, # The type of activity this subscription is for (only uploads, everything).
215 &quot;totalItemCount&quot;: 42, # The approximate number of items that the subscription points to.
216 &quot;newItemCount&quot;: 42, # The number of new items in the subscription since its content was last read.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800217 },
218 &quot;snippet&quot;: { # Basic details about a subscription, including title, description and thumbnails of the subscribed item. # The snippet object contains basic details about the subscription, including its title and the channel that the user subscribed to.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800219 &quot;channelTitle&quot;: &quot;A String&quot;, # Channel title for the channel that the subscription belongs to.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800220 &quot;title&quot;: &quot;A String&quot;, # The subscription&#x27;s title.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800221 &quot;channelId&quot;: &quot;A String&quot;, # The ID that YouTube uses to uniquely identify the subscriber&#x27;s channel.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800222 &quot;description&quot;: &quot;A String&quot;, # The subscription&#x27;s details.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800223 &quot;publishedAt&quot;: &quot;A String&quot;, # The date and time that the subscription was created. The value is specified in ISO 8601 format.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800224 &quot;thumbnails&quot;: { # Internal representation of thumbnails for a YouTube resource. # A map of thumbnail images associated with the video. 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.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800225 &quot;medium&quot;: { # A thumbnail is an image representing a YouTube resource. # The medium quality image for this resource.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800226 &quot;height&quot;: 42, # (Optional) Height of the thumbnail image.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800227 &quot;url&quot;: &quot;A String&quot;, # The thumbnail image&#x27;s URL.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800228 &quot;width&quot;: 42, # (Optional) Width of the thumbnail image.
229 },
230 &quot;high&quot;: { # A thumbnail is an image representing a YouTube resource. # The high quality image for this resource.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800231 &quot;height&quot;: 42, # (Optional) Height of the thumbnail image.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800232 &quot;url&quot;: &quot;A String&quot;, # The thumbnail image&#x27;s URL.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800233 &quot;width&quot;: 42, # (Optional) Width of the thumbnail image.
234 },
235 &quot;standard&quot;: { # A thumbnail is an image representing a YouTube resource. # The standard quality image for this resource.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800236 &quot;height&quot;: 42, # (Optional) Height of the thumbnail image.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800237 &quot;url&quot;: &quot;A String&quot;, # The thumbnail image&#x27;s URL.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800238 &quot;width&quot;: 42, # (Optional) Width of the thumbnail image.
239 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800240 &quot;default&quot;: { # A thumbnail is an image representing a YouTube resource. # The default image for this resource.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800241 &quot;height&quot;: 42, # (Optional) Height of the thumbnail image.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800242 &quot;url&quot;: &quot;A String&quot;, # The thumbnail image&#x27;s URL.
243 &quot;width&quot;: 42, # (Optional) Width of the thumbnail image.
244 },
245 &quot;maxres&quot;: { # A thumbnail is an image representing a YouTube resource. # The maximum resolution quality image for this resource.
246 &quot;height&quot;: 42, # (Optional) Height of the thumbnail image.
247 &quot;url&quot;: &quot;A String&quot;, # The thumbnail image&#x27;s URL.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800248 &quot;width&quot;: 42, # (Optional) Width of the thumbnail image.
249 },
250 },
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800251 &quot;resourceId&quot;: { # A resource id is a generic reference that points to another YouTube resource. # The id object contains information about the channel that the user subscribed to.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800252 &quot;kind&quot;: &quot;A String&quot;, # The type of the API resource.
253 &quot;videoId&quot;: &quot;A String&quot;, # 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.
254 &quot;channelId&quot;: &quot;A String&quot;, # 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.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800255 &quot;playlistId&quot;: &quot;A String&quot;, # 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.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800256 },
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800257 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800258 &quot;etag&quot;: &quot;A String&quot;, # Etag of this resource.
259 &quot;kind&quot;: &quot;youtube#subscription&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;youtube#subscription&quot;.
260 &quot;subscriberSnippet&quot;: { # Basic details about a subscription&#x27;s subscriber including title, description, channel ID and thumbnails. # The subscriberSnippet object contains basic details about the subscriber.
261 &quot;description&quot;: &quot;A String&quot;, # The description of the subscriber.
262 &quot;title&quot;: &quot;A String&quot;, # The title of the subscriber.
263 &quot;thumbnails&quot;: { # Internal representation of thumbnails for a YouTube resource. # Thumbnails for this subscriber.
264 &quot;medium&quot;: { # A thumbnail is an image representing a YouTube resource. # The medium quality image for this resource.
265 &quot;height&quot;: 42, # (Optional) Height of the thumbnail image.
266 &quot;url&quot;: &quot;A String&quot;, # The thumbnail image&#x27;s URL.
267 &quot;width&quot;: 42, # (Optional) Width of the thumbnail image.
268 },
269 &quot;high&quot;: { # A thumbnail is an image representing a YouTube resource. # The high quality image for this resource.
270 &quot;height&quot;: 42, # (Optional) Height of the thumbnail image.
271 &quot;url&quot;: &quot;A String&quot;, # The thumbnail image&#x27;s URL.
272 &quot;width&quot;: 42, # (Optional) Width of the thumbnail image.
273 },
274 &quot;standard&quot;: { # A thumbnail is an image representing a YouTube resource. # The standard quality image for this resource.
275 &quot;height&quot;: 42, # (Optional) Height of the thumbnail image.
276 &quot;url&quot;: &quot;A String&quot;, # The thumbnail image&#x27;s URL.
277 &quot;width&quot;: 42, # (Optional) Width of the thumbnail image.
278 },
279 &quot;default&quot;: { # A thumbnail is an image representing a YouTube resource. # The default image for this resource.
280 &quot;height&quot;: 42, # (Optional) Height of the thumbnail image.
281 &quot;url&quot;: &quot;A String&quot;, # The thumbnail image&#x27;s URL.
282 &quot;width&quot;: 42, # (Optional) Width of the thumbnail image.
283 },
284 &quot;maxres&quot;: { # A thumbnail is an image representing a YouTube resource. # The maximum resolution quality image for this resource.
285 &quot;height&quot;: 42, # (Optional) Height of the thumbnail image.
286 &quot;url&quot;: &quot;A String&quot;, # The thumbnail image&#x27;s URL.
287 &quot;width&quot;: 42, # (Optional) Width of the thumbnail image.
288 },
289 },
290 &quot;channelId&quot;: &quot;A String&quot;, # The channel ID of the subscriber.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800291 },
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800292 }</pre>
John Asmuth614db982014-04-24 15:46:26 -0400293</div>
294
295<div class="method">
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800296 <code class="details" id="list">list(part, onBehalfOfContentOwner=None, order=None, pageToken=None, mine=None, id=None, myRecentSubscribers=None, maxResults=None, channelId=None, forChannelId=None, onBehalfOfContentOwnerChannel=None, mySubscribers=None, x__xgafv=None)</code>
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700297 <pre>Retrieves a list of resources, possibly filtered.
John Asmuth614db982014-04-24 15:46:26 -0400298
299Args:
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700300 part: string, 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. (required) (repeated)
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800301 onBehalfOfContentOwner: string, *Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwner* parameter indicates that the request&#x27;s authorization credentials identify a YouTube CMS user who is acting on behalf of the content owner specified in the parameter value. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and get access to all their video and channel data, without having to provide authentication credentials for each individual channel. The CMS account that the user authenticates with must be linked to the specified YouTube content owner.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700302 order: string, The order of the returned subscriptions
303 Allowed values
304 subscriptionOrderUnspecified -
305 relevance - Sort by relevance.
306 unread - Sort by order of activity.
307 alphabetical - Sort alphabetically.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800308 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.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800309 mine: boolean, Flag for returning the subscriptions of the authenticated user.
310 id: string, Return the subscriptions with the given IDs for Stubby or Apiary. (repeated)
311 myRecentSubscribers: boolean, A parameter
312 maxResults: integer, The *maxResults* parameter specifies the maximum number of items that should be returned in the result set.
313 channelId: string, Return the subscriptions of the given channel owner.
314 forChannelId: string, Return the subscriptions to the subset of these channels that the authenticated user is subscribed to.
315 onBehalfOfContentOwnerChannel: string, This parameter can only be used in a properly authorized request. *Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwnerChannel* parameter specifies the YouTube channel ID of the channel to which a video is being added. This parameter is required when a request specifies a value for the onBehalfOfContentOwner parameter, and it can only be used in conjunction with that parameter. In addition, the request must be authorized using a CMS account that is linked to the content owner that the onBehalfOfContentOwner parameter specifies. Finally, the channel that the onBehalfOfContentOwnerChannel parameter value specifies must be linked to the content owner that the onBehalfOfContentOwner parameter specifies. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and perform actions on behalf of the channel specified in the parameter value, without having to provide authentication credentials for each separate channel.
316 mySubscribers: boolean, Return the subscribers of the given channel owner.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700317 x__xgafv: string, V1 error format.
John Asmuth614db982014-04-24 15:46:26 -0400318 Allowed values
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700319 1 - v1 error format
320 2 - v2 error format
John Asmuth614db982014-04-24 15:46:26 -0400321
322Returns:
323 An object of the form:
324
325 {
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800326 &quot;eventId&quot;: &quot;A String&quot;, # Serialized EventId of the request which produced this response.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700327 &quot;items&quot;: [ # A list of subscriptions that match the request criteria.
328 { # A *subscription* resource contains information about a YouTube user subscription. A subscription notifies a user when new videos are added to a channel or when another user takes one of several actions on YouTube, such as uploading a video, rating a video, or commenting on a video.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800329 &quot;id&quot;: &quot;A String&quot;, # The ID that YouTube uses to uniquely identify the subscription.
330 &quot;contentDetails&quot;: { # Details about the content to witch a subscription refers. # The contentDetails object contains basic statistics about the subscription.
331 &quot;activityType&quot;: &quot;A String&quot;, # The type of activity this subscription is for (only uploads, everything).
332 &quot;totalItemCount&quot;: 42, # The approximate number of items that the subscription points to.
333 &quot;newItemCount&quot;: 42, # The number of new items in the subscription since its content was last read.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700334 },
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800335 &quot;snippet&quot;: { # Basic details about a subscription, including title, description and thumbnails of the subscribed item. # The snippet object contains basic details about the subscription, including its title and the channel that the user subscribed to.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800336 &quot;channelTitle&quot;: &quot;A String&quot;, # Channel title for the channel that the subscription belongs to.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800337 &quot;title&quot;: &quot;A String&quot;, # The subscription&#x27;s title.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800338 &quot;channelId&quot;: &quot;A String&quot;, # The ID that YouTube uses to uniquely identify the subscriber&#x27;s channel.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800339 &quot;description&quot;: &quot;A String&quot;, # The subscription&#x27;s details.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800340 &quot;publishedAt&quot;: &quot;A String&quot;, # The date and time that the subscription was created. The value is specified in ISO 8601 format.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800341 &quot;thumbnails&quot;: { # Internal representation of thumbnails for a YouTube resource. # A map of thumbnail images associated with the video. 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.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800342 &quot;medium&quot;: { # A thumbnail is an image representing a YouTube resource. # The medium quality image for this resource.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800343 &quot;height&quot;: 42, # (Optional) Height of the thumbnail image.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800344 &quot;url&quot;: &quot;A String&quot;, # The thumbnail image&#x27;s URL.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800345 &quot;width&quot;: 42, # (Optional) Width of the thumbnail image.
346 },
347 &quot;high&quot;: { # A thumbnail is an image representing a YouTube resource. # The high quality image for this resource.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800348 &quot;height&quot;: 42, # (Optional) Height of the thumbnail image.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800349 &quot;url&quot;: &quot;A String&quot;, # The thumbnail image&#x27;s URL.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800350 &quot;width&quot;: 42, # (Optional) Width of the thumbnail image.
351 },
352 &quot;standard&quot;: { # A thumbnail is an image representing a YouTube resource. # The standard quality image for this resource.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800353 &quot;height&quot;: 42, # (Optional) Height of the thumbnail image.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800354 &quot;url&quot;: &quot;A String&quot;, # The thumbnail image&#x27;s URL.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800355 &quot;width&quot;: 42, # (Optional) Width of the thumbnail image.
356 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800357 &quot;default&quot;: { # A thumbnail is an image representing a YouTube resource. # The default image for this resource.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800358 &quot;height&quot;: 42, # (Optional) Height of the thumbnail image.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800359 &quot;url&quot;: &quot;A String&quot;, # The thumbnail image&#x27;s URL.
360 &quot;width&quot;: 42, # (Optional) Width of the thumbnail image.
361 },
362 &quot;maxres&quot;: { # A thumbnail is an image representing a YouTube resource. # The maximum resolution quality image for this resource.
363 &quot;height&quot;: 42, # (Optional) Height of the thumbnail image.
364 &quot;url&quot;: &quot;A String&quot;, # The thumbnail image&#x27;s URL.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800365 &quot;width&quot;: 42, # (Optional) Width of the thumbnail image.
366 },
367 },
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800368 &quot;resourceId&quot;: { # A resource id is a generic reference that points to another YouTube resource. # The id object contains information about the channel that the user subscribed to.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800369 &quot;kind&quot;: &quot;A String&quot;, # The type of the API resource.
370 &quot;videoId&quot;: &quot;A String&quot;, # 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.
371 &quot;channelId&quot;: &quot;A String&quot;, # 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.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800372 &quot;playlistId&quot;: &quot;A String&quot;, # 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.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800373 },
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800374 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800375 &quot;etag&quot;: &quot;A String&quot;, # Etag of this resource.
376 &quot;kind&quot;: &quot;youtube#subscription&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;youtube#subscription&quot;.
377 &quot;subscriberSnippet&quot;: { # Basic details about a subscription&#x27;s subscriber including title, description, channel ID and thumbnails. # The subscriberSnippet object contains basic details about the subscriber.
378 &quot;description&quot;: &quot;A String&quot;, # The description of the subscriber.
379 &quot;title&quot;: &quot;A String&quot;, # The title of the subscriber.
380 &quot;thumbnails&quot;: { # Internal representation of thumbnails for a YouTube resource. # Thumbnails for this subscriber.
381 &quot;medium&quot;: { # A thumbnail is an image representing a YouTube resource. # The medium quality image for this resource.
382 &quot;height&quot;: 42, # (Optional) Height of the thumbnail image.
383 &quot;url&quot;: &quot;A String&quot;, # The thumbnail image&#x27;s URL.
384 &quot;width&quot;: 42, # (Optional) Width of the thumbnail image.
385 },
386 &quot;high&quot;: { # A thumbnail is an image representing a YouTube resource. # The high quality image for this resource.
387 &quot;height&quot;: 42, # (Optional) Height of the thumbnail image.
388 &quot;url&quot;: &quot;A String&quot;, # The thumbnail image&#x27;s URL.
389 &quot;width&quot;: 42, # (Optional) Width of the thumbnail image.
390 },
391 &quot;standard&quot;: { # A thumbnail is an image representing a YouTube resource. # The standard quality image for this resource.
392 &quot;height&quot;: 42, # (Optional) Height of the thumbnail image.
393 &quot;url&quot;: &quot;A String&quot;, # The thumbnail image&#x27;s URL.
394 &quot;width&quot;: 42, # (Optional) Width of the thumbnail image.
395 },
396 &quot;default&quot;: { # A thumbnail is an image representing a YouTube resource. # The default image for this resource.
397 &quot;height&quot;: 42, # (Optional) Height of the thumbnail image.
398 &quot;url&quot;: &quot;A String&quot;, # The thumbnail image&#x27;s URL.
399 &quot;width&quot;: 42, # (Optional) Width of the thumbnail image.
400 },
401 &quot;maxres&quot;: { # A thumbnail is an image representing a YouTube resource. # The maximum resolution quality image for this resource.
402 &quot;height&quot;: 42, # (Optional) Height of the thumbnail image.
403 &quot;url&quot;: &quot;A String&quot;, # The thumbnail image&#x27;s URL.
404 &quot;width&quot;: 42, # (Optional) Width of the thumbnail image.
405 },
406 },
407 &quot;channelId&quot;: &quot;A String&quot;, # The channel ID of the subscriber.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800408 },
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800409 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700410 ],
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800411 &quot;tokenPagination&quot;: { # Stub token pagination template to suppress results.
412 },
413 &quot;etag&quot;: &quot;A String&quot;, # Etag of this resource.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800414 &quot;visitorId&quot;: &quot;A String&quot;, # The visitorId identifies the visitor.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800415 &quot;prevPageToken&quot;: &quot;A String&quot;, # The token that can be used as the value of the pageToken parameter to retrieve the previous page in the result set.
416 &quot;nextPageToken&quot;: &quot;A String&quot;, # The token that can be used as the value of the pageToken parameter to retrieve the next page in the result set.
417 &quot;kind&quot;: &quot;youtube#subscriptionListResponse&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;youtube#subscriptionListResponse&quot;.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700418 &quot;pageInfo&quot;: { # Paging details for lists of resources, including total number of items available and number of resources returned in a single page.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800419 &quot;totalResults&quot;: 42, # The total number of results in the result set.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800420 &quot;resultsPerPage&quot;: 42, # The number of results included in the API response.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700421 },
John Asmuth614db982014-04-24 15:46:26 -0400422 }</pre>
423</div>
424
425<div class="method">
426 <code class="details" id="list_next">list_next(previous_request, previous_response)</code>
427 <pre>Retrieves the next page of results.
428
429Args:
430 previous_request: The request for the previous page. (required)
431 previous_response: The response from the request for the previous page. (required)
432
433Returns:
Bu Sun Kim65020912020-05-20 12:08:20 -0700434 A request object that you can call &#x27;execute()&#x27; on to request the next
John Asmuth614db982014-04-24 15:46:26 -0400435 page. Returns None if there are no more items in the collection.
436 </pre>
437</div>
438
439</body></html>