Skip to content

Instantly share code, notes, and snippets.

@batFormat
Last active May 27, 2020 17:17
Show Gist options
  • Save batFormat/ce009d0a68db8edbd15f8edb7c084b99 to your computer and use it in GitHub Desktop.
Save batFormat/ce009d0a68db8edbd15f8edb7c084b99 to your computer and use it in GitHub Desktop.
Пример ответа от метода upload, из vk-php-sdk
// $photo = $this->vk
// ->getRequest()
// ->upload($url, 'photo', 'test_photo.JPG');
array:5 [
"server" => 204516
"photo" => "[{"markers_restarted":true,"photo":"04914fa9e7:w","sizes":[],"latitude":0,"longitude":0,"kid":"76773f0968e622e4565c1569f69a8e4e","sizes2":[["s","6d3ccf1f62fa7764dfe4b4cae135a20f07eb7c3ae037c0c3fd4f6a92","-4517628954411015465",75,56],["m","bb6a7e5577b2f06227f05ce4d67c3e15fef361833134df31487120a6","-3219168273734240088",130,97],["x","04e0cd1d4e363ac137f7730a5dd3b1f947f9c94d647fa34c32c1baae","879059161582419064",604,453],["y","bdb21ba50d99a4355dd8c9435a9153d4280ef370ebb080708ee8634e","-3446015447328514989",807,605],["z","c083f91878ac5010007a63ff6137c3f1f6cd1778fe8cd0a4cd8cabcd","1636530027326253434",1280,960],["w","88ef2bee876cc034688e125bfa93edcae72f1f46455cc1c89671c487","-3571565795873561491",1707,1280],["o","e6afaa8eab96cc91e47729db706fcc8c54ff77beb76b912032bf8196","-7087800100686053181",130,98],["p","fa7a25f29b7324b231a495f14591af84994448c0ab96209959aa0815","-189001268309978181",200,150],["q","98ac8c68832cb859ce4f48e23f4d6b2a4752684d65893ae86bbd2e52","2620709748951465733",320,240],["r","797578611f222079ae05474c6c800aababb3d6c46d941027a4665077","5513853384305142618",510,383]],"urls":[],"urls2":["bTzPH2L6d2Tf5LTK4TWiDwfrfDrgN8DD_U9qkg/1-JPwWYoTsE.jpg","u2p-VXey8GIn8Fzk1nw-Ff7zYYMxNN8xSHEgpg/qPjcy4I3U9M.jpg","BODNHU42OsE393MKXdOx-Uf5yU1kf6NMMsG6rg/eDysZqYLMww.jpg","vbIbpQ2ZpDVd2MlDWpFT1CgO83DrsIBwjuhjTg/U5x5WzVLLdA.jpg","wIP5GHisUBAAemP_YTfD8fbNF3j-jNCkzYyrzQ/eqkKn2MfthY.jpg","iO8r7odswDRojhJb-pPtyucvH0ZFXMHIlnHEhw/bWQF5dQ_b84.jpg","5q-qjquWzJHkdynbcG_MjFT_d763a5EgMr-Blg/w0Chd1wTo50.jpg","-nol8ptzJLIxpJXxRZGvhJlESMCrliCZWaoIFQ/uxNJDFmIYP0.jpg","mKyMaIMsuFnOT0jiP01rKkdSaE1liTroa70uUg/Bb-nraGhXiQ.jpg","eXV4YR8iIHmuBUdMbIAKq6uz1sRtlBAnpGZQdw/WusXe3AkhUw.jpg"]}]"
"hash" => "fcaa92081bb1f7840d3162dd8d1917b5"
"crop_data" => "{"photo":"ae76f89b9cx","sizes":[],"sizes2":[["max","88ef2bee876cc034688e125bfa93edcae72f1f46455cc1c89671c487","-3571565795873561491",1707,1280],["o","b00f33290b14ed627b4f8af91c6a8b76649fe0baca08ab19a511502f","-5262697729503875943",1280,1280],["a","29ed1a7f83bf5f99b605e56ddcb09ce85dc15132c0c4ca953be1b1ee","5207115201554571762",800,800],["b","a89e9067309ca12cfa202497776258a118b7a96f0a00fca35f3de2b3","7020543332242167603",400,400],["c","11b03b01c3d1ad45749a531613f074b2f403b065d11f52df23ad5c96","2432084958403114920",300,300],["d","ce56029601588451ea86b5702cd21bcf6c4096edaf40c087251f09ea","8604732787506478826",200,200],["e","b213c93ae273c285308c166248da728b0a9442f633c019830e271aa0","8045853810572302009",150,150],["f","2030e855cb2074b72077331227683abd265811d6b5d5ec20332d7eae","-3169222953874798815",100,100],["g","4d459c7952973d4be2404d7fae913823dd204ace8231ce43a71cb515","8803986932355152554",50,50]],"urls":[],"urls2":["iO8r7odswDRojhJb-pPtyucvH0ZFXMHIlnHEhw/bWQF5dQ_b84.jpg","sA8zKQsU7WJ7T4r5HGqLdmSf4LrKCKsZpRFQLw/mayqSEwk97Y.jpg","Ke0af4O_X5m2BeVt3LCc6F3BUTLAxMqVO-Gx7g/8mEy9a9jQ0g.jpg","qJ6QZzCcoSz6ICSXd2JYoRi3qW8KAPyjXz3isw/MxeI2Pb6bWE.jpg","EbA7AcPRrUV0mlMWE_B0svQDsGXRH1LfI61clg/qDcwSWKAwCE.jpg","zlYClgFYhFHqhrVwLNIbz2xAlu2vQMCHJR8J6g/6v56YuEmanc.jpg","shPJOuJzwoUwjBZiSNpyiwqUQvYzwBmDDicaoA/uZbidWmdqG8.jpg","IDDoVcsgdLcgdzMSJ2g6vSZYEda11ewgMy1-rg/IUdHxIOoBNQ.jpg","TUWceVKXPUviQE1_rpE4I90gSs6CMc5Dpxy1FQ/qro1LngLLno.jpg"]}"
"crop_hash" => "a86306bc6ed34bbbdcd337247a4e334e"
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment