John Asmuth | 614db98 | 2014-04-24 15:46:26 -0400 | [diff] [blame] | 1 | <html><body> |
| 2 | <style> |
| 3 | |
| 4 | body, 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 | |
| 15 | body { |
| 16 | font-size: 13px; |
| 17 | padding: 1em; |
| 18 | } |
| 19 | |
| 20 | h1 { |
| 21 | font-size: 26px; |
| 22 | margin-bottom: 1em; |
| 23 | } |
| 24 | |
| 25 | h2 { |
| 26 | font-size: 24px; |
| 27 | margin-bottom: 1em; |
| 28 | } |
| 29 | |
| 30 | h3 { |
| 31 | font-size: 20px; |
| 32 | margin-bottom: 1em; |
| 33 | margin-top: 1em; |
| 34 | } |
| 35 | |
| 36 | pre, code { |
| 37 | line-height: 1.5; |
| 38 | font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace; |
| 39 | } |
| 40 | |
| 41 | pre { |
| 42 | margin-top: 0.5em; |
| 43 | } |
| 44 | |
| 45 | h1, h2, h3, p { |
| 46 | font-family: Arial, sans serif; |
| 47 | } |
| 48 | |
| 49 | h1, 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 Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame^] | 75 | <h1><a href="youtube_v3.html">YouTube Data API v3</a> . <a href="youtube_v3.subscriptions.html">subscriptions</a></h1> |
John Asmuth | 614db98 | 2014-04-24 15:46:26 -0400 | [diff] [blame] | 76 | <h2>Instance Methods</h2> |
| 77 | <p class="toc_element"> |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame^] | 78 | <code><a href="#delete">delete(id, x__xgafv=None)</a></code></p> |
| 79 | <p class="firstline">Deletes a resource.</p> |
John Asmuth | 614db98 | 2014-04-24 15:46:26 -0400 | [diff] [blame] | 80 | <p class="toc_element"> |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame^] | 81 | <code><a href="#insert">insert(part, body=None, x__xgafv=None)</a></code></p> |
| 82 | <p class="firstline">Inserts a new resource into this collection.</p> |
John Asmuth | 614db98 | 2014-04-24 15:46:26 -0400 | [diff] [blame] | 83 | <p class="toc_element"> |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame^] | 84 | <code><a href="#list">list(part, onBehalfOfContentOwner=None, onBehalfOfContentOwnerChannel=None, mine=None, channelId=None, forChannelId=None, order=None, id=None, mySubscribers=None, myRecentSubscribers=None, maxResults=None, pageToken=None, x__xgafv=None)</a></code></p> |
| 85 | <p class="firstline">Retrieves a list of resources, possibly filtered.</p> |
John Asmuth | 614db98 | 2014-04-24 15:46:26 -0400 | [diff] [blame] | 86 | <p class="toc_element"> |
| 87 | <code><a href="#list_next">list_next(previous_request, previous_response)</a></code></p> |
| 88 | <p class="firstline">Retrieves the next page of results.</p> |
| 89 | <h3>Method Details</h3> |
| 90 | <div class="method"> |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame^] | 91 | <code class="details" id="delete">delete(id, x__xgafv=None)</code> |
| 92 | <pre>Deletes a resource. |
John Asmuth | 614db98 | 2014-04-24 15:46:26 -0400 | [diff] [blame] | 93 | |
| 94 | Args: |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame^] | 95 | id: string, A parameter (required) |
| 96 | x__xgafv: string, V1 error format. |
| 97 | Allowed values |
| 98 | 1 - v1 error format |
| 99 | 2 - v2 error format |
John Asmuth | 614db98 | 2014-04-24 15:46:26 -0400 | [diff] [blame] | 100 | </pre> |
| 101 | </div> |
| 102 | |
| 103 | <div class="method"> |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame^] | 104 | <code class="details" id="insert">insert(part, body=None, x__xgafv=None)</code> |
| 105 | <pre>Inserts a new resource into this collection. |
John Asmuth | 614db98 | 2014-04-24 15:46:26 -0400 | [diff] [blame] | 106 | |
| 107 | Args: |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame^] | 108 | part: string, The <code><strong>part</strong></code> parameter serves two purposes in |
| 109 | this operation. It identifies the properties that the write operation will |
| 110 | set as well as the properties that the API response will include. (required) (repeated) |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame] | 111 | body: object, The request body. |
John Asmuth | 614db98 | 2014-04-24 15:46:26 -0400 | [diff] [blame] | 112 | The object takes the form of: |
| 113 | |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame^] | 114 | { # A <code><strong>subscription</strong></code> resource contains information |
| 115 | # about a YouTube user subscription. A subscription notifies a user when new |
| 116 | # videos are added to a channel or when another user takes one of several |
| 117 | # actions on YouTube, such as uploading a video, rating a video, or commenting |
| 118 | # on a video. |
| 119 | "snippet": { # Basic details about a subscription, including title, description and # The <code>snippet</code> object contains basic details about the |
| 120 | # subscription, including its title and the channel that the user subscribed |
| 121 | # to. |
| 122 | # thumbnails of the subscribed item. |
| 123 | "title": "A String", # The subscription's title. |
| 124 | "channelTitle": "A String", # Channel title for the channel that the subscription belongs to. |
| 125 | "resourceId": { # A resource id is a generic reference that points to another YouTube resource. # The <code>id</code> object contains information about the channel that |
| 126 | # the user subscribed to. |
| 127 | "kind": "A String", # The type of the API resource. |
| 128 | "videoId": "A String", # The ID that YouTube uses to uniquely identify the referred resource, if |
| 129 | # that resource is a video. This property is only present if the |
| 130 | # <code>resourceId.kind</code> value is <code>youtube#video</code>. |
| 131 | "channelId": "A String", # The ID that YouTube uses to uniquely identify the referred resource, if |
| 132 | # that resource is a channel. This property is only present if the |
| 133 | # <code>resourceId.kind</code> value is <code>youtube#channel</code>. |
| 134 | "playlistId": "A String", # The ID that YouTube uses to uniquely identify the referred resource, if |
| 135 | # that resource is a playlist. This property is only present if the |
| 136 | # <code>resourceId.kind</code> value is <code>youtube#playlist</code>. |
John Asmuth | 614db98 | 2014-04-24 15:46:26 -0400 | [diff] [blame] | 137 | }, |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame^] | 138 | "channelId": "A String", # The ID that YouTube uses to uniquely identify the subscriber's channel. |
| 139 | "description": "A String", # The subscription's details. |
| 140 | "thumbnails": { # Internal representation of thumbnails for a YouTube resource. # A map of thumbnail images associated with the video. For each object |
| 141 | # in the map, the key is the name of the thumbnail image, and the value |
| 142 | # is an object that contains other information about the thumbnail. |
| 143 | "medium": { # A thumbnail is an image representing a YouTube resource. # The medium quality image for this resource. |
| 144 | "width": 42, # (Optional) Width of the thumbnail image. |
| 145 | "url": "A String", # The thumbnail image's URL. |
| 146 | "height": 42, # (Optional) Height of the thumbnail image. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 147 | }, |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame^] | 148 | "standard": { # A thumbnail is an image representing a YouTube resource. # The standard quality image for this resource. |
| 149 | "width": 42, # (Optional) Width of the thumbnail image. |
| 150 | "url": "A String", # The thumbnail image's URL. |
| 151 | "height": 42, # (Optional) Height of the thumbnail image. |
John Asmuth | 614db98 | 2014-04-24 15:46:26 -0400 | [diff] [blame] | 152 | }, |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame^] | 153 | "default": { # A thumbnail is an image representing a YouTube resource. # The default image for this resource. |
| 154 | "width": 42, # (Optional) Width of the thumbnail image. |
| 155 | "url": "A String", # The thumbnail image's URL. |
| 156 | "height": 42, # (Optional) Height of the thumbnail image. |
| 157 | }, |
| 158 | "maxres": { # A thumbnail is an image representing a YouTube resource. # The maximum resolution quality image for this resource. |
| 159 | "width": 42, # (Optional) Width of the thumbnail image. |
| 160 | "url": "A String", # The thumbnail image's URL. |
| 161 | "height": 42, # (Optional) Height of the thumbnail image. |
| 162 | }, |
| 163 | "high": { # A thumbnail is an image representing a YouTube resource. # The high quality image for this resource. |
| 164 | "width": 42, # (Optional) Width of the thumbnail image. |
| 165 | "url": "A String", # The thumbnail image's URL. |
| 166 | "height": 42, # (Optional) Height of the thumbnail image. |
| 167 | }, |
John Asmuth | 614db98 | 2014-04-24 15:46:26 -0400 | [diff] [blame] | 168 | }, |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame^] | 169 | "publishedAt": "A String", # The date and time that the subscription was created. The value is |
| 170 | # specified in <a href="//www.w3.org/TR/NOTE-datetime">ISO 8601</a> |
| 171 | # format. |
| 172 | }, |
| 173 | "kind": "youtube#subscription", # Identifies what kind of resource this is. Value: the fixed string |
| 174 | # <code>"youtube#subscription"</code>. |
| 175 | "contentDetails": { # Details about the content to witch a subscription refers. # The <code>contentDetails</code> object contains basic statistics about the |
| 176 | # subscription. |
| 177 | "newItemCount": 42, # The number of new items in the subscription since its content was last |
| 178 | # read. |
| 179 | "activityType": "A String", # The type of activity this subscription is for |
| 180 | # (only uploads, everything). |
| 181 | "totalItemCount": 42, # The approximate number of items that the subscription points to. |
| 182 | }, |
| 183 | "etag": "A String", # Etag of this resource. |
| 184 | "subscriberSnippet": { # Basic details about a subscription's subscriber including title, # The <code>subscriberSnippet</code> object contains basic details about the |
| 185 | # subscriber. |
| 186 | # description, channel ID and thumbnails. |
| 187 | "thumbnails": { # Internal representation of thumbnails for a YouTube resource. # Thumbnails for this subscriber. |
| 188 | "medium": { # A thumbnail is an image representing a YouTube resource. # The medium quality image for this resource. |
| 189 | "width": 42, # (Optional) Width of the thumbnail image. |
| 190 | "url": "A String", # The thumbnail image's URL. |
| 191 | "height": 42, # (Optional) Height of the thumbnail image. |
John Asmuth | 614db98 | 2014-04-24 15:46:26 -0400 | [diff] [blame] | 192 | }, |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame^] | 193 | "standard": { # A thumbnail is an image representing a YouTube resource. # The standard quality image for this resource. |
| 194 | "width": 42, # (Optional) Width of the thumbnail image. |
| 195 | "url": "A String", # The thumbnail image's URL. |
| 196 | "height": 42, # (Optional) Height of the thumbnail image. |
| 197 | }, |
| 198 | "default": { # A thumbnail is an image representing a YouTube resource. # The default image for this resource. |
| 199 | "width": 42, # (Optional) Width of the thumbnail image. |
| 200 | "url": "A String", # The thumbnail image's URL. |
| 201 | "height": 42, # (Optional) Height of the thumbnail image. |
| 202 | }, |
| 203 | "maxres": { # A thumbnail is an image representing a YouTube resource. # The maximum resolution quality image for this resource. |
| 204 | "width": 42, # (Optional) Width of the thumbnail image. |
| 205 | "url": "A String", # The thumbnail image's URL. |
| 206 | "height": 42, # (Optional) Height of the thumbnail image. |
| 207 | }, |
| 208 | "high": { # A thumbnail is an image representing a YouTube resource. # The high quality image for this resource. |
| 209 | "width": 42, # (Optional) Width of the thumbnail image. |
| 210 | "url": "A String", # The thumbnail image's URL. |
| 211 | "height": 42, # (Optional) Height of the thumbnail image. |
| 212 | }, |
John Asmuth | 614db98 | 2014-04-24 15:46:26 -0400 | [diff] [blame] | 213 | }, |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame^] | 214 | "title": "A String", # The title of the subscriber. |
| 215 | "description": "A String", # The description of the subscriber. |
| 216 | "channelId": "A String", # The channel ID of the subscriber. |
| 217 | }, |
| 218 | "id": "A String", # The ID that YouTube uses to uniquely identify the subscription. |
| 219 | } |
John Asmuth | 614db98 | 2014-04-24 15:46:26 -0400 | [diff] [blame] | 220 | |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame^] | 221 | x__xgafv: string, V1 error format. |
| 222 | Allowed values |
| 223 | 1 - v1 error format |
| 224 | 2 - v2 error format |
John Asmuth | 614db98 | 2014-04-24 15:46:26 -0400 | [diff] [blame] | 225 | |
| 226 | Returns: |
| 227 | An object of the form: |
| 228 | |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame^] | 229 | { # A <code><strong>subscription</strong></code> resource contains information |
| 230 | # about a YouTube user subscription. A subscription notifies a user when new |
| 231 | # videos are added to a channel or when another user takes one of several |
| 232 | # actions on YouTube, such as uploading a video, rating a video, or commenting |
| 233 | # on a video. |
| 234 | "snippet": { # Basic details about a subscription, including title, description and # The <code>snippet</code> object contains basic details about the |
| 235 | # subscription, including its title and the channel that the user subscribed |
| 236 | # to. |
| 237 | # thumbnails of the subscribed item. |
| 238 | "title": "A String", # The subscription's title. |
| 239 | "channelTitle": "A String", # Channel title for the channel that the subscription belongs to. |
| 240 | "resourceId": { # A resource id is a generic reference that points to another YouTube resource. # The <code>id</code> object contains information about the channel that |
| 241 | # the user subscribed to. |
| 242 | "kind": "A String", # The type of the API resource. |
| 243 | "videoId": "A String", # The ID that YouTube uses to uniquely identify the referred resource, if |
| 244 | # that resource is a video. This property is only present if the |
| 245 | # <code>resourceId.kind</code> value is <code>youtube#video</code>. |
| 246 | "channelId": "A String", # The ID that YouTube uses to uniquely identify the referred resource, if |
| 247 | # that resource is a channel. This property is only present if the |
| 248 | # <code>resourceId.kind</code> value is <code>youtube#channel</code>. |
| 249 | "playlistId": "A String", # The ID that YouTube uses to uniquely identify the referred resource, if |
| 250 | # that resource is a playlist. This property is only present if the |
| 251 | # <code>resourceId.kind</code> value is <code>youtube#playlist</code>. |
John Asmuth | 614db98 | 2014-04-24 15:46:26 -0400 | [diff] [blame] | 252 | }, |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame^] | 253 | "channelId": "A String", # The ID that YouTube uses to uniquely identify the subscriber's channel. |
| 254 | "description": "A String", # The subscription's details. |
| 255 | "thumbnails": { # Internal representation of thumbnails for a YouTube resource. # A map of thumbnail images associated with the video. For each object |
| 256 | # in the map, the key is the name of the thumbnail image, and the value |
| 257 | # is an object that contains other information about the thumbnail. |
| 258 | "medium": { # A thumbnail is an image representing a YouTube resource. # The medium quality image for this resource. |
| 259 | "width": 42, # (Optional) Width of the thumbnail image. |
| 260 | "url": "A String", # The thumbnail image's URL. |
| 261 | "height": 42, # (Optional) Height of the thumbnail image. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 262 | }, |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame^] | 263 | "standard": { # A thumbnail is an image representing a YouTube resource. # The standard quality image for this resource. |
| 264 | "width": 42, # (Optional) Width of the thumbnail image. |
| 265 | "url": "A String", # The thumbnail image's URL. |
| 266 | "height": 42, # (Optional) Height of the thumbnail image. |
John Asmuth | 614db98 | 2014-04-24 15:46:26 -0400 | [diff] [blame] | 267 | }, |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame^] | 268 | "default": { # A thumbnail is an image representing a YouTube resource. # The default image for this resource. |
| 269 | "width": 42, # (Optional) Width of the thumbnail image. |
| 270 | "url": "A String", # The thumbnail image's URL. |
| 271 | "height": 42, # (Optional) Height of the thumbnail image. |
| 272 | }, |
| 273 | "maxres": { # A thumbnail is an image representing a YouTube resource. # The maximum resolution quality image for this resource. |
| 274 | "width": 42, # (Optional) Width of the thumbnail image. |
| 275 | "url": "A String", # The thumbnail image's URL. |
| 276 | "height": 42, # (Optional) Height of the thumbnail image. |
| 277 | }, |
| 278 | "high": { # A thumbnail is an image representing a YouTube resource. # The high quality image for this resource. |
| 279 | "width": 42, # (Optional) Width of the thumbnail image. |
| 280 | "url": "A String", # The thumbnail image's URL. |
| 281 | "height": 42, # (Optional) Height of the thumbnail image. |
| 282 | }, |
John Asmuth | 614db98 | 2014-04-24 15:46:26 -0400 | [diff] [blame] | 283 | }, |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame^] | 284 | "publishedAt": "A String", # The date and time that the subscription was created. The value is |
| 285 | # specified in <a href="//www.w3.org/TR/NOTE-datetime">ISO 8601</a> |
| 286 | # format. |
| 287 | }, |
| 288 | "kind": "youtube#subscription", # Identifies what kind of resource this is. Value: the fixed string |
| 289 | # <code>"youtube#subscription"</code>. |
| 290 | "contentDetails": { # Details about the content to witch a subscription refers. # The <code>contentDetails</code> object contains basic statistics about the |
| 291 | # subscription. |
| 292 | "newItemCount": 42, # The number of new items in the subscription since its content was last |
| 293 | # read. |
| 294 | "activityType": "A String", # The type of activity this subscription is for |
| 295 | # (only uploads, everything). |
| 296 | "totalItemCount": 42, # The approximate number of items that the subscription points to. |
| 297 | }, |
| 298 | "etag": "A String", # Etag of this resource. |
| 299 | "subscriberSnippet": { # Basic details about a subscription's subscriber including title, # The <code>subscriberSnippet</code> object contains basic details about the |
| 300 | # subscriber. |
| 301 | # description, channel ID and thumbnails. |
| 302 | "thumbnails": { # Internal representation of thumbnails for a YouTube resource. # Thumbnails for this subscriber. |
| 303 | "medium": { # A thumbnail is an image representing a YouTube resource. # The medium quality image for this resource. |
| 304 | "width": 42, # (Optional) Width of the thumbnail image. |
| 305 | "url": "A String", # The thumbnail image's URL. |
| 306 | "height": 42, # (Optional) Height of the thumbnail image. |
John Asmuth | 614db98 | 2014-04-24 15:46:26 -0400 | [diff] [blame] | 307 | }, |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame^] | 308 | "standard": { # A thumbnail is an image representing a YouTube resource. # The standard quality image for this resource. |
| 309 | "width": 42, # (Optional) Width of the thumbnail image. |
| 310 | "url": "A String", # The thumbnail image's URL. |
| 311 | "height": 42, # (Optional) Height of the thumbnail image. |
| 312 | }, |
| 313 | "default": { # A thumbnail is an image representing a YouTube resource. # The default image for this resource. |
| 314 | "width": 42, # (Optional) Width of the thumbnail image. |
| 315 | "url": "A String", # The thumbnail image's URL. |
| 316 | "height": 42, # (Optional) Height of the thumbnail image. |
| 317 | }, |
| 318 | "maxres": { # A thumbnail is an image representing a YouTube resource. # The maximum resolution quality image for this resource. |
| 319 | "width": 42, # (Optional) Width of the thumbnail image. |
| 320 | "url": "A String", # The thumbnail image's URL. |
| 321 | "height": 42, # (Optional) Height of the thumbnail image. |
| 322 | }, |
| 323 | "high": { # A thumbnail is an image representing a YouTube resource. # The high quality image for this resource. |
| 324 | "width": 42, # (Optional) Width of the thumbnail image. |
| 325 | "url": "A String", # The thumbnail image's URL. |
| 326 | "height": 42, # (Optional) Height of the thumbnail image. |
| 327 | }, |
John Asmuth | 614db98 | 2014-04-24 15:46:26 -0400 | [diff] [blame] | 328 | }, |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame^] | 329 | "title": "A String", # The title of the subscriber. |
| 330 | "description": "A String", # The description of the subscriber. |
| 331 | "channelId": "A String", # The channel ID of the subscriber. |
| 332 | }, |
| 333 | "id": "A String", # The ID that YouTube uses to uniquely identify the subscription. |
| 334 | }</pre> |
John Asmuth | 614db98 | 2014-04-24 15:46:26 -0400 | [diff] [blame] | 335 | </div> |
| 336 | |
| 337 | <div class="method"> |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame^] | 338 | <code class="details" id="list">list(part, onBehalfOfContentOwner=None, onBehalfOfContentOwnerChannel=None, mine=None, channelId=None, forChannelId=None, order=None, id=None, mySubscribers=None, myRecentSubscribers=None, maxResults=None, pageToken=None, x__xgafv=None)</code> |
| 339 | <pre>Retrieves a list of resources, possibly filtered. |
John Asmuth | 614db98 | 2014-04-24 15:46:26 -0400 | [diff] [blame] | 340 | |
| 341 | Args: |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame^] | 342 | part: string, The <code><strong>part</strong></code> parameter specifies a |
| 343 | comma-separated list of one or more <code>subscription</code> resource |
| 344 | properties that the API response will include.<br><br>If the parameter |
| 345 | identifies a property that contains child properties, the child properties |
| 346 | will be included in the response. For example, in a |
| 347 | <code>subscription</code> resource, the <code>snippet</code> property |
| 348 | contains other properties, such as a display title for the subscription. If |
| 349 | you set <code><strong>part=snippet</strong></code>, the API response will |
| 350 | also contain all of those nested properties. (required) (repeated) |
| 351 | onBehalfOfContentOwner: string, <strong>Note:</strong> This parameter is intended exclusively for YouTube |
| 352 | content partners.<br><br>The |
| 353 | <code><strong>onBehalfOfContentOwner</strong></code> parameter indicates |
| 354 | that the |
| 355 | request's authorization credentials identify a YouTube CMS user who is |
| 356 | acting on behalf of the content owner specified in the parameter value. |
| 357 | This parameter is intended for YouTube content partners that own and manage |
| 358 | many different YouTube channels. It allows content owners to authenticate |
| 359 | once and get access to all their video and channel data, without having to |
| 360 | provide authentication credentials for each individual channel. The CMS |
| 361 | account that the user authenticates with must be linked to the specified |
| 362 | YouTube content owner. |
| 363 | onBehalfOfContentOwnerChannel: string, This parameter can only be used in a properly <a |
| 364 | href="/youtube/v3/guides/authentication">authorized request</a>. |
| 365 | <strong>Note:</strong> This parameter is intended exclusively for YouTube |
| 366 | content partners.<br><br>The |
| 367 | <code><strong>onBehalfOfContentOwnerChannel</strong></code> parameter |
| 368 | specifies the YouTube channel ID of the channel to which a video is being |
| 369 | added. This parameter is required when a request specifies a value for the |
| 370 | <code>onBehalfOfContentOwner</code> parameter, and it can only be used in |
| 371 | conjunction with that parameter. In addition, the request must be |
| 372 | authorized using a CMS account that is linked to the content owner that the |
| 373 | <code>onBehalfOfContentOwner</code> parameter specifies. Finally, the |
| 374 | channel that the <code>onBehalfOfContentOwnerChannel</code> parameter value |
| 375 | specifies must be linked to the content owner that the |
| 376 | <code>onBehalfOfContentOwner</code> parameter specifies.<br><br>This |
| 377 | parameter is intended for YouTube content partners that own and manage many |
| 378 | different YouTube channels. It allows content owners to authenticate once |
| 379 | and perform actions on behalf of the channel specified in the parameter |
| 380 | value, without having to provide authentication credentials for each |
| 381 | separate channel. |
| 382 | mine: boolean, Flag for returning the subscriptions of the authenticated user. |
| 383 | channelId: string, Return the subscriptions of the given channel owner. |
| 384 | forChannelId: string, Return the subscriptions to the subset of these channels that the |
| 385 | authenticated user is subscribed to. |
| 386 | order: string, The order of the returned subscriptions |
| 387 | id: string, Return the subscriptions with the given IDs for Stubby or Apiary. (repeated) |
| 388 | mySubscribers: boolean, Return the subscribers of the given channel owner. |
| 389 | myRecentSubscribers: boolean, A parameter |
| 390 | maxResults: integer, The <code><strong>maxResults</strong></code> parameter specifies the |
| 391 | maximum number of items that should be returned in the result set. |
| 392 | pageToken: string, The <code><strong>pageToken</strong></code> parameter identifies a specific |
| 393 | page in the result set that should be returned. In an API response, the |
| 394 | <code>nextPageToken</code> and <code>prevPageToken</code> properties |
| 395 | identify other pages that could be retrieved. |
| 396 | x__xgafv: string, V1 error format. |
John Asmuth | 614db98 | 2014-04-24 15:46:26 -0400 | [diff] [blame] | 397 | Allowed values |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame^] | 398 | 1 - v1 error format |
| 399 | 2 - v2 error format |
John Asmuth | 614db98 | 2014-04-24 15:46:26 -0400 | [diff] [blame] | 400 | |
| 401 | Returns: |
| 402 | An object of the form: |
| 403 | |
| 404 | { |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame^] | 405 | "tokenPagination": { # Stub token pagination template to suppress results. |
| 406 | }, |
| 407 | "prevPageToken": "A String", # The token that can be used as the value of the <code>pageToken</code> |
| 408 | # parameter to retrieve the previous page in the result set. |
| 409 | "items": [ # A list of subscriptions that match the request criteria. |
| 410 | { # A <code><strong>subscription</strong></code> resource contains information |
| 411 | # about a YouTube user subscription. A subscription notifies a user when new |
| 412 | # videos are added to a channel or when another user takes one of several |
| 413 | # actions on YouTube, such as uploading a video, rating a video, or commenting |
| 414 | # on a video. |
| 415 | "snippet": { # Basic details about a subscription, including title, description and # The <code>snippet</code> object contains basic details about the |
| 416 | # subscription, including its title and the channel that the user subscribed |
| 417 | # to. |
| 418 | # thumbnails of the subscribed item. |
| 419 | "title": "A String", # The subscription's title. |
| 420 | "channelTitle": "A String", # Channel title for the channel that the subscription belongs to. |
| 421 | "resourceId": { # A resource id is a generic reference that points to another YouTube resource. # The <code>id</code> object contains information about the channel that |
| 422 | # the user subscribed to. |
| 423 | "kind": "A String", # The type of the API resource. |
| 424 | "videoId": "A String", # The ID that YouTube uses to uniquely identify the referred resource, if |
| 425 | # that resource is a video. This property is only present if the |
| 426 | # <code>resourceId.kind</code> value is <code>youtube#video</code>. |
| 427 | "channelId": "A String", # The ID that YouTube uses to uniquely identify the referred resource, if |
| 428 | # that resource is a channel. This property is only present if the |
| 429 | # <code>resourceId.kind</code> value is <code>youtube#channel</code>. |
| 430 | "playlistId": "A String", # The ID that YouTube uses to uniquely identify the referred resource, if |
| 431 | # that resource is a playlist. This property is only present if the |
| 432 | # <code>resourceId.kind</code> value is <code>youtube#playlist</code>. |
| 433 | }, |
| 434 | "channelId": "A String", # The ID that YouTube uses to uniquely identify the subscriber's channel. |
| 435 | "description": "A String", # The subscription's details. |
| 436 | "thumbnails": { # Internal representation of thumbnails for a YouTube resource. # A map of thumbnail images associated with the video. For each object |
| 437 | # in the map, the key is the name of the thumbnail image, and the value |
| 438 | # is an object that contains other information about the thumbnail. |
| 439 | "medium": { # A thumbnail is an image representing a YouTube resource. # The medium quality image for this resource. |
| 440 | "width": 42, # (Optional) Width of the thumbnail image. |
| 441 | "url": "A String", # The thumbnail image's URL. |
| 442 | "height": 42, # (Optional) Height of the thumbnail image. |
| 443 | }, |
| 444 | "standard": { # A thumbnail is an image representing a YouTube resource. # The standard quality image for this resource. |
| 445 | "width": 42, # (Optional) Width of the thumbnail image. |
| 446 | "url": "A String", # The thumbnail image's URL. |
| 447 | "height": 42, # (Optional) Height of the thumbnail image. |
| 448 | }, |
| 449 | "default": { # A thumbnail is an image representing a YouTube resource. # The default image for this resource. |
| 450 | "width": 42, # (Optional) Width of the thumbnail image. |
| 451 | "url": "A String", # The thumbnail image's URL. |
| 452 | "height": 42, # (Optional) Height of the thumbnail image. |
| 453 | }, |
| 454 | "maxres": { # A thumbnail is an image representing a YouTube resource. # The maximum resolution quality image for this resource. |
| 455 | "width": 42, # (Optional) Width of the thumbnail image. |
| 456 | "url": "A String", # The thumbnail image's URL. |
| 457 | "height": 42, # (Optional) Height of the thumbnail image. |
| 458 | }, |
| 459 | "high": { # A thumbnail is an image representing a YouTube resource. # The high quality image for this resource. |
| 460 | "width": 42, # (Optional) Width of the thumbnail image. |
| 461 | "url": "A String", # The thumbnail image's URL. |
| 462 | "height": 42, # (Optional) Height of the thumbnail image. |
| 463 | }, |
| 464 | }, |
| 465 | "publishedAt": "A String", # The date and time that the subscription was created. The value is |
| 466 | # specified in <a href="//www.w3.org/TR/NOTE-datetime">ISO 8601</a> |
| 467 | # format. |
| 468 | }, |
| 469 | "kind": "youtube#subscription", # Identifies what kind of resource this is. Value: the fixed string |
| 470 | # <code>"youtube#subscription"</code>. |
| 471 | "contentDetails": { # Details about the content to witch a subscription refers. # The <code>contentDetails</code> object contains basic statistics about the |
| 472 | # subscription. |
| 473 | "newItemCount": 42, # The number of new items in the subscription since its content was last |
| 474 | # read. |
| 475 | "activityType": "A String", # The type of activity this subscription is for |
| 476 | # (only uploads, everything). |
| 477 | "totalItemCount": 42, # The approximate number of items that the subscription points to. |
| 478 | }, |
| 479 | "etag": "A String", # Etag of this resource. |
| 480 | "subscriberSnippet": { # Basic details about a subscription's subscriber including title, # The <code>subscriberSnippet</code> object contains basic details about the |
| 481 | # subscriber. |
| 482 | # description, channel ID and thumbnails. |
| 483 | "thumbnails": { # Internal representation of thumbnails for a YouTube resource. # Thumbnails for this subscriber. |
| 484 | "medium": { # A thumbnail is an image representing a YouTube resource. # The medium quality image for this resource. |
| 485 | "width": 42, # (Optional) Width of the thumbnail image. |
| 486 | "url": "A String", # The thumbnail image's URL. |
| 487 | "height": 42, # (Optional) Height of the thumbnail image. |
| 488 | }, |
| 489 | "standard": { # A thumbnail is an image representing a YouTube resource. # The standard quality image for this resource. |
| 490 | "width": 42, # (Optional) Width of the thumbnail image. |
| 491 | "url": "A String", # The thumbnail image's URL. |
| 492 | "height": 42, # (Optional) Height of the thumbnail image. |
| 493 | }, |
| 494 | "default": { # A thumbnail is an image representing a YouTube resource. # The default image for this resource. |
| 495 | "width": 42, # (Optional) Width of the thumbnail image. |
| 496 | "url": "A String", # The thumbnail image's URL. |
| 497 | "height": 42, # (Optional) Height of the thumbnail image. |
| 498 | }, |
| 499 | "maxres": { # A thumbnail is an image representing a YouTube resource. # The maximum resolution quality image for this resource. |
| 500 | "width": 42, # (Optional) Width of the thumbnail image. |
| 501 | "url": "A String", # The thumbnail image's URL. |
| 502 | "height": 42, # (Optional) Height of the thumbnail image. |
| 503 | }, |
| 504 | "high": { # A thumbnail is an image representing a YouTube resource. # The high quality image for this resource. |
| 505 | "width": 42, # (Optional) Width of the thumbnail image. |
| 506 | "url": "A String", # The thumbnail image's URL. |
| 507 | "height": 42, # (Optional) Height of the thumbnail image. |
| 508 | }, |
| 509 | }, |
| 510 | "title": "A String", # The title of the subscriber. |
| 511 | "description": "A String", # The description of the subscriber. |
| 512 | "channelId": "A String", # The channel ID of the subscriber. |
| 513 | }, |
| 514 | "id": "A String", # The ID that YouTube uses to uniquely identify the subscription. |
| 515 | }, |
| 516 | ], |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 517 | "etag": "A String", # Etag of this resource. |
| 518 | "eventId": "A String", # Serialized EventId of the request which produced this response. |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame^] | 519 | "kind": "youtube#subscriptionListResponse", # Identifies what kind of resource this is. Value: the fixed string |
| 520 | # <code>"youtube#subscriptionListResponse"</code>. |
| 521 | "visitorId": "A String", # The <code>visitorId</code> identifies the visitor. |
| 522 | "pageInfo": { # Paging details for lists of resources, including total number of items |
| 523 | # available and number of resources returned in a single page. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 524 | "resultsPerPage": 42, # The number of results included in the API response. |
| 525 | "totalResults": 42, # The total number of results in the result set. |
John Asmuth | 614db98 | 2014-04-24 15:46:26 -0400 | [diff] [blame] | 526 | }, |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame^] | 527 | "nextPageToken": "A String", # The token that can be used as the value of the <code>pageToken</code> |
| 528 | # parameter to retrieve the next page in the result set. |
John Asmuth | 614db98 | 2014-04-24 15:46:26 -0400 | [diff] [blame] | 529 | }</pre> |
| 530 | </div> |
| 531 | |
| 532 | <div class="method"> |
| 533 | <code class="details" id="list_next">list_next(previous_request, previous_response)</code> |
| 534 | <pre>Retrieves the next page of results. |
| 535 | |
| 536 | Args: |
| 537 | previous_request: The request for the previous page. (required) |
| 538 | previous_response: The response from the request for the previous page. (required) |
| 539 | |
| 540 | Returns: |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 541 | A request object that you can call 'execute()' on to request the next |
John Asmuth | 614db98 | 2014-04-24 15:46:26 -0400 | [diff] [blame] | 542 | page. Returns None if there are no more items in the collection. |
| 543 | </pre> |
| 544 | </div> |
| 545 | |
| 546 | </body></html> |