- Регистрация
- 20.04.2015
- Сообщения
- 5 963
- Благодарностей
- 6 433
- Баллы
- 113
Гуру, можно ли увидеть наглядный пример загрузки видео, для осознания того, что надо грузить в запрос?
При запросе имею получаю вот такие данные
PS \ искал РУ мануалы по апи, ничего толкового так и не нашел, решил делать на пост гетах, и тут тоже загвоздки.
При запросе имею получаю вот такие данные
Код:
POST /upload/rupio?authuser=0 HTTP/1.1
Host: upload.youtube.com
User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:45.0) Gecko/20100101 Firefox/45.0
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: ru-RU,ru;q=0.5
Accept-Encoding: gzip, deflate
X-Goog-AuthUser: 0
X-GUploader-Client-Info: mechanism=scotty xhr resumable; clientVersion=147948767
Content-Type: application/x-www-form-urlencoded;charset=utf-8
Referer: https://www.youtube.com/upload
Origin: https://www.youtube.com
Cookie: YSC=e50jy350F9I; VISITOR_INFO1_LIVE=whqGWInrp_4; PREF=f1=50000000&f5=30; SID=ZgQ2qBvD8Uh3ynfHdPMpqU4ClTzIndcv6O1QuEY27_Ypvy0gjIu_qNLcoRh5cOS-DzRcrQ.; HSID=ARyrL88MuVxE_YBiP; SSID=A-Hb2jYZ5Z0tXqTvW; APISID=RG4zYFSb0wM6eWBr/AFfI6AUklLe2M2c7m; SAPISID=yVM5kgfjHNLo9qe9/AQX8QHAgZ_-Az9pkD; CONSENT=YES+RU.ru+20160717-08-0; LOGIN_INFO=ACNE9aIwRQIgLPSK4idUugImfCx_dBdWuq9rI_2VGUy96M583Y97gr4CIQC3E5Zfkz8HAYMNaw7faNJzgiivOEoHSkOIVYGrtzd2iA:QUxBVGNjcVdxYjFMZzlOUmIyMHRKaHR4VmdUU2pFeXpUX1FxOUx3dU9qRkZTZzc2UnJ1RXRjdkNkdldzTGpSekVrcXpvQlR2OEhzcjBWaHlWeTFlaV95S1NqM2xxRzI3aWpvaEQxM2d3SjJCWkhsZ2tLMk5JNzRLYjBTTGZBZmFPSTZvRU94VVR5NjlkXzY2azVSMU1SZnJTVzdJWUplMm9n; _ga=GA1.2.608430461.1488439030; _gat=1
Connection: keep-alive
Content-Length: 3191
{"protocolVersion":"0.8","createSessionRequest":{"fields":[{"external":{"name":"file","filename":"15crbgym_360p_k8bbg82dND.mp4","put":{},"size":3970942}},{"inlined":{"name":"return_address","content":"www.youtube.com","contentType":"text/plain"}},{"inlined":{"name":"user_token","content":"A1ZepU6lilCp9JWtKLBRd_KcxnJ8MTQ4OTA1MTE2NUAxNDg4NDQ2MzY1","contentType":"text/plain"}},{"inlined":{"name":"authuser","content":"0","contentType":"text/plain"}},{"inlined":{"name":"uploader_type","content":"Web_XHR","contentType":"text/plain"}},{"inlined":{"name":"frontend_id","content":"web_upload:247db372-d168-4eed-971c-0192b8ff3065:0","contentType":"text/plain"}},{"inlined":{"name":"experiment_ids","content":"9405969,9415398,9416475,9417482,9419979,9420289,9422596,9423555,9428398,9431012,9432939,9433221,9433839,9433870,9434046,9434289,9434949,9437553,9438309,9440054,9440370,9441194,9441929,9442387,9442746,9444189,9445076,9445634,9446054,9446142,9446364,9447232,9448302,9449034,9449243,9449256,9449327,9450059,9450402,9450544,9450641,9450707,9450862,9450950,9451164,9451783,9451814,9451827,9451937,9452119,9452306,9452448,9452833,9452850,9453098,9453167,9453540,9453553,9453682,9454383,9454394,9454653,9454793,9454837,9454900,9454909,9454976,9455031,9455068,9455655,9455939,9455982,9456026,9456133,9456249,9456445,9456516,9456640,9456930,9457115,9457141,9457169,9457423,9457475,9457492,9457494,9457592,9457596,9457597,9457968,9458054,9458172,9458231,9458240,9458265,9458577,9458668,9458670,9458742,9458881,9458947,9459027,9459067,9459075,9459187,9459429,9459444,9459514,9459605,9459651,9459655,9459762,9459792,9459795,9460160,9460267,9460295,9460554,9460594,9460599,9460611,9460727,9460829,9461124,9461429,9461452,9461561,9461777,9461880,9461906,9461984,9462003,9462018,9462032,9462234,9462359,9462377,9462416,9462474,9462513,9462855,9462948,9463002,9463004,9463251,9463288,9463395,9463460,9463471,9463496,9463664,9463784,9463802,9463809,9463886,9464038,9464040,9464112,9464121,9464182,9464278,9464285,9464373,9464674,9465077,9465284,9465366","contentType":"text/plain"}},{"inlined":{"name":"field_privacy","content":"private","contentType":"text/plain"}},{"inlined":{"name":"field_myvideo_title","content":"15crbgym 360p k8bbg82dND","contentType":"text/plain"}},{"inlined":{"name":"field_myvideo_descr","content":"","contentType":"text/plain"}},{"inlined":{"name":"field_myvideo_keywords","content":"","contentType":"text/plain"}},{"inlined":{"name":"allow_public_stats","content":"yes","contentType":"text/plain"}},{"inlined":{"name":"allow_comments","content":"yes","contentType":"text/plain"}},{"inlined":{"name":"allow_comments_detail","content":"all","contentType":"text/plain"}},{"inlined":{"name":"allow_ratings","content":"yes","contentType":"text/plain"}},{"inlined":{"name":"privacy_draft","content":"public","contentType":"text/plain"}},{"inlined":{"name":"session_token","content":"QUFFLUhqa1c1TDRla2FmMm5hMEZRLXpuSVFQOGQxRFVOUXxBQ3Jtc0tsT21GYXZjWmdNWFNOaS1ic0VZM3NYUUcxX2R2OG93aWV3d0pBVGxrWXlGWTVVSDJkcmlobU5rYzZqcVJHaS1GeDNQMmNlbDVpUXNTWGtTeHctX1JFY3BMVEFQd2ZNLTJpcW1jYXNjdm13RE9MdXZ4V1F5R05JVzlja3Z6bHBsVGlTV29EZWRaSHpscjVGX2ZmUEZDUnBfaUJVakE=","contentType":"text/plain"}}]}}