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="youtubereporting_v1.html">YouTube Reporting API</a> . <a href="youtubereporting_v1.media.html">media</a></h1> 76<h2>Instance Methods</h2> 77<p class="toc_element"> 78 <code><a href="#download">download(resourceName, x__xgafv=None)</a></code></p> 79<p class="firstline">Method for media download. Download is supported</p> 80<p class="toc_element"> 81 <code><a href="#download_media">download_media(resourceName, x__xgafv=None)</a></code></p> 82<p class="firstline">Method for media download. Download is supported</p> 83<h3>Method Details</h3> 84<div class="method"> 85 <code class="details" id="download">download(resourceName, x__xgafv=None)</code> 86 <pre>Method for media download. Download is supported 87on the URI `/v1/media/{+name}?alt=media`. 88 89Args: 90 resourceName: string, Name of the media that is being downloaded. (required) 91 x__xgafv: string, V1 error format. 92 Allowed values 93 1 - v1 error format 94 2 - v2 error format 95 96Returns: 97 An object of the form: 98 99 { # gdata 100 "contentTypeInfo": { # gdata # gdata 101 "bestGuess": "A String", # gdata 102 "fromBytes": "A String", # gdata 103 "fromFileName": "A String", # gdata 104 "fromUrlPath": "A String", # gdata 105 "fromHeader": "A String", # gdata 106 }, 107 "diffDownloadResponse": { # gdata # gdata 108 "objectLocation": { # gdata # gdata 109 "objectId": { # gdata # gdata 110 "generation": "A String", # gdata 111 "bucketName": "A String", # gdata 112 "objectName": "A String", # gdata 113 }, 114 "blobstore2Info": { # gdata # gdata 115 "downloadReadHandle": "A String", # gdata 116 "readToken": "A String", # gdata 117 "blobId": "A String", # gdata 118 "blobGeneration": "A String", # gdata 119 "uploadMetadataContainer": "A String", # gdata 120 }, 121 "cosmoBinaryReference": "A String", # gdata 122 "md5Hash": "A String", # gdata 123 "crc32cHash": 42, # gdata 124 "length": "A String", # gdata 125 "blobRef": "A String", # gdata 126 "path": "A String", # gdata 127 "inline": "A String", # gdata 128 "referenceType": "A String", # gdata 129 "sha1Hash": "A String", # gdata 130 }, 131 }, 132 "mediaId": "A String", # gdata 133 "blobRef": "A String", # gdata 134 "contentType": "A String", # gdata 135 "diffUploadRequest": { # gdata # gdata 136 "checksumsInfo": { # gdata # gdata 137 "objectId": { # gdata # gdata 138 "generation": "A String", # gdata 139 "bucketName": "A String", # gdata 140 "objectName": "A String", # gdata 141 }, 142 "blobstore2Info": { # gdata # gdata 143 "downloadReadHandle": "A String", # gdata 144 "readToken": "A String", # gdata 145 "blobId": "A String", # gdata 146 "blobGeneration": "A String", # gdata 147 "uploadMetadataContainer": "A String", # gdata 148 }, 149 "cosmoBinaryReference": "A String", # gdata 150 "md5Hash": "A String", # gdata 151 "crc32cHash": 42, # gdata 152 "length": "A String", # gdata 153 "blobRef": "A String", # gdata 154 "path": "A String", # gdata 155 "inline": "A String", # gdata 156 "referenceType": "A String", # gdata 157 "sha1Hash": "A String", # gdata 158 }, 159 "objectInfo": { # gdata # gdata 160 "objectId": { # gdata # gdata 161 "generation": "A String", # gdata 162 "bucketName": "A String", # gdata 163 "objectName": "A String", # gdata 164 }, 165 "blobstore2Info": { # gdata # gdata 166 "downloadReadHandle": "A String", # gdata 167 "readToken": "A String", # gdata 168 "blobId": "A String", # gdata 169 "blobGeneration": "A String", # gdata 170 "uploadMetadataContainer": "A String", # gdata 171 }, 172 "cosmoBinaryReference": "A String", # gdata 173 "md5Hash": "A String", # gdata 174 "crc32cHash": 42, # gdata 175 "length": "A String", # gdata 176 "blobRef": "A String", # gdata 177 "path": "A String", # gdata 178 "inline": "A String", # gdata 179 "referenceType": "A String", # gdata 180 "sha1Hash": "A String", # gdata 181 }, 182 "objectVersion": "A String", # gdata 183 }, 184 "diffVersionResponse": { # gdata # gdata 185 "objectSizeBytes": "A String", # gdata 186 "objectVersion": "A String", # gdata 187 }, 188 "objectId": { # gdata # gdata 189 "generation": "A String", # gdata 190 "bucketName": "A String", # gdata 191 "objectName": "A String", # gdata 192 }, 193 "blobstore2Info": { # gdata # gdata 194 "downloadReadHandle": "A String", # gdata 195 "readToken": "A String", # gdata 196 "blobId": "A String", # gdata 197 "blobGeneration": "A String", # gdata 198 "uploadMetadataContainer": "A String", # gdata 199 }, 200 "cosmoBinaryReference": "A String", # gdata 201 "md5Hash": "A String", # gdata 202 "token": "A String", # gdata 203 "downloadParameters": { # gdata # gdata 204 "ignoreRange": True or False, # gdata 205 "allowGzipCompression": True or False, # gdata 206 }, 207 "filename": "A String", # gdata 208 "sha1Hash": "A String", # gdata 209 "referenceType": "A String", # gdata 210 "compositeMedia": [ # gdata 211 { # gdata 212 "objectId": { # gdata # gdata 213 "generation": "A String", # gdata 214 "bucketName": "A String", # gdata 215 "objectName": "A String", # gdata 216 }, 217 "blobstore2Info": { # gdata # gdata 218 "downloadReadHandle": "A String", # gdata 219 "readToken": "A String", # gdata 220 "blobId": "A String", # gdata 221 "blobGeneration": "A String", # gdata 222 "uploadMetadataContainer": "A String", # gdata 223 }, 224 "cosmoBinaryReference": "A String", # gdata 225 "md5Hash": "A String", # gdata 226 "crc32cHash": 42, # gdata 227 "length": "A String", # gdata 228 "blobRef": "A String", # gdata 229 "path": "A String", # gdata 230 "inline": "A String", # gdata 231 "referenceType": "A String", # gdata 232 "sha1Hash": "A String", # gdata 233 }, 234 ], 235 "diffChecksumsResponse": { # gdata # gdata 236 "objectSizeBytes": "A String", # gdata 237 "chunkSizeBytes": "A String", # gdata 238 "checksumsLocation": { # gdata # gdata 239 "objectId": { # gdata # gdata 240 "generation": "A String", # gdata 241 "bucketName": "A String", # gdata 242 "objectName": "A String", # gdata 243 }, 244 "blobstore2Info": { # gdata # gdata 245 "downloadReadHandle": "A String", # gdata 246 "readToken": "A String", # gdata 247 "blobId": "A String", # gdata 248 "blobGeneration": "A String", # gdata 249 "uploadMetadataContainer": "A String", # gdata 250 }, 251 "cosmoBinaryReference": "A String", # gdata 252 "md5Hash": "A String", # gdata 253 "crc32cHash": 42, # gdata 254 "length": "A String", # gdata 255 "blobRef": "A String", # gdata 256 "path": "A String", # gdata 257 "inline": "A String", # gdata 258 "referenceType": "A String", # gdata 259 "sha1Hash": "A String", # gdata 260 }, 261 "objectVersion": "A String", # gdata 262 "objectLocation": { # gdata # gdata 263 "objectId": { # gdata # gdata 264 "generation": "A String", # gdata 265 "bucketName": "A String", # gdata 266 "objectName": "A String", # gdata 267 }, 268 "blobstore2Info": { # gdata # gdata 269 "downloadReadHandle": "A String", # gdata 270 "readToken": "A String", # gdata 271 "blobId": "A String", # gdata 272 "blobGeneration": "A String", # gdata 273 "uploadMetadataContainer": "A String", # gdata 274 }, 275 "cosmoBinaryReference": "A String", # gdata 276 "md5Hash": "A String", # gdata 277 "crc32cHash": 42, # gdata 278 "length": "A String", # gdata 279 "blobRef": "A String", # gdata 280 "path": "A String", # gdata 281 "inline": "A String", # gdata 282 "referenceType": "A String", # gdata 283 "sha1Hash": "A String", # gdata 284 }, 285 }, 286 "hashVerified": True or False, # gdata 287 "hash": "A String", # gdata 288 "timestamp": "A String", # gdata 289 "bigstoreObjectRef": "A String", # gdata 290 "diffUploadResponse": { # gdata # gdata 291 "originalObject": { # gdata # gdata 292 "objectId": { # gdata # gdata 293 "generation": "A String", # gdata 294 "bucketName": "A String", # gdata 295 "objectName": "A String", # gdata 296 }, 297 "blobstore2Info": { # gdata # gdata 298 "downloadReadHandle": "A String", # gdata 299 "readToken": "A String", # gdata 300 "blobId": "A String", # gdata 301 "blobGeneration": "A String", # gdata 302 "uploadMetadataContainer": "A String", # gdata 303 }, 304 "cosmoBinaryReference": "A String", # gdata 305 "md5Hash": "A String", # gdata 306 "crc32cHash": 42, # gdata 307 "length": "A String", # gdata 308 "blobRef": "A String", # gdata 309 "path": "A String", # gdata 310 "inline": "A String", # gdata 311 "referenceType": "A String", # gdata 312 "sha1Hash": "A String", # gdata 313 }, 314 "objectVersion": "A String", # gdata 315 }, 316 "crc32cHash": 42, # gdata 317 "sha256Hash": "A String", # gdata 318 "path": "A String", # gdata 319 "algorithm": "A String", # gdata 320 "length": "A String", # gdata 321 "isPotentialRetry": True or False, # gdata 322 "inline": "A String", # gdata 323 }</pre> 324</div> 325 326<div class="method"> 327 <code class="details" id="download_media">download_media(resourceName, x__xgafv=None)</code> 328 <pre>Method for media download. Download is supported 329on the URI `/v1/media/{+name}?alt=media`. 330 331Args: 332 resourceName: string, Name of the media that is being downloaded. (required) 333 x__xgafv: string, V1 error format. 334 Allowed values 335 1 - v1 error format 336 2 - v2 error format 337 338Returns: 339 The media object as a string. 340 341 </pre> 342</div> 343 344</body></html>