Skip to content

Instantly share code, notes, and snippets.

@350d 350d/1_video.get
Created Nov 20, 2014

Embed
What would you like to do?
VK API / wall.get / video.get for 1 item / video.get for 2 item
print_r(json_decode(file_get_contents("https://api.vkontakte.ru/method/video.get?access_token=$token&owner_id=64842982&videos=64842982_170418653")));
stdClass Object
(
[response] => Array
(
[0] => 1
[1] => stdClass Object
(
[vid] => 170418653
[owner_id] => 64842982
[title] => My summer 2014
[description] => Music : Milky Chance – Down by the River
Author : Studenikin S.S
Cameras: Canon 600d EF 50 mm lens + GoPro Hero 3 Black edition
Location: Moscow, Rostov-on-Don,Krasnodar, Merganovo, Djubga, Nebug, Olginskaya , Inal, Arkhipo-Osipovka... June - August ,2014
[duration] => 200
[link] => video64842982_170418653
[date] => 1412528854
[views] => 135
[image] => http://cs620016.vk.me/u64842982/video/m_67a7fd1b.jpg
[image_medium] => http://cs620016.vk.me/u64842982/video/l_c68682e8.jpg
[files] => stdClass Object
(
[external] => http://vimeo.com/108050087
)
[comments] => 0
[player] => http://player.vimeo.com/video/108050087
)
)
)
print_r(json_decode(file_get_contents("https://api.vkontakte.ru/method/video.get?access_token=$token&owner_id=-34090415&videos=-34090415_-34090415")));
stdClass Object
(
[response] => Array
(
[0] => 0
)
)
print_r($VK->api('wall.get', array('owner_id'=>'-34090415', 'domain'=>'gopro', 'count'=>5, 'filter'=>'owner', 'extended'=>1)));
Array
(
[response] => Array
(
[count] => 800
[items] => Array
(
[0] => Array
(
[id] => 1735
[from_id] => -34090415
[owner_id] => -34090415
[date] => 1416424496
[post_type] => post
[text] =>
[attachments] => Array
(
[0] => Array
(
[type] => video
[video] => Array
(
[id] => 170418653
[owner_id] => 64842982
[title] => My summer 2014
[duration] => 200
[description] => Music : Milky Chance – Down by the River
Author : Studenikin S.S
Cameras: Canon 600d EF 50 mm lens + GoPro Hero 3 Black edition
Location: Moscow, Rostov-on-Don,Krasnodar, Merganovo, Djubga, Nebug, Olginskaya , Inal, Arkhipo-Osipovka... June - August ,2014
[date] => 1412528854
[views] => 135
[comments] => 0
[photo_130] => http://cs620016.vk.me/u64842982/video/s_02e04cf4.jpg
[photo_320] => http://cs620016.vk.me/u64842982/video/l_c68682e8.jpg
[photo_640] => http://cs620016.vk.me/u64842982/video/y_b379fba0.jpg
[access_key] => f5e4110633bd215156
)
)
)
[comments] => Array
(
[count] => 0
)
[likes] => Array
(
[count] => 0
)
[reposts] => Array
(
[count] => 0
)
)
[1] => Array
(
[id] => 1734
[from_id] => -34090415
[owner_id] => -34090415
[date] => 1416370584
[post_type] => post
[text] =>
[attachments] => Array
(
[0] => Array
(
[type] => video
[video] => Array
(
[id] => 170547164
[owner_id] => -34090415
[title] => GoPro: Athlete Summit
[duration] => 253
[description] => vk.com/gopro
With the help of the GoPro Media Team, GoPro Athletes take over Turtle Bay on the North Shore of Oahu, to become some of the worlds leading content creators and self publishers.
Shot 100% on the HERO3+® camera from http://GoPro.com.
Music
Punk Party and Kevin Wild - "Gravity" ft. Kelly Sweet​
Link to buy: http://goo.gl/JmsDQk
[date] => 1416370399
[views] => 9
[comments] => 0
[photo_130] => http://cs623426.vk.me/u2267477/video/s_e3b46bb3.jpg
[photo_320] => http://cs623426.vk.me/u2267477/video/l_a059f84b.jpg
[access_key] => 406a3758ca1905f9e2
)
)
)
[comments] => Array
(
[count] => 0
)
[likes] => Array
(
[count] => 3
)
[reposts] => Array
(
[count] => 1
)
)
[2] => Array
(
[id] => 1732
[from_id] => -34090415
[owner_id] => -34090415
[date] => 1415558716
[post_type] => post
[text] =>
[attachments] => Array
(
[0] => Array
(
[type] => photo
[photo] => Array
(
[id] => 345180980
[album_id] => -7
[owner_id] => -34090415
[user_id] => 100
[photo_75] => http://cs618116.vk.me/v618116915/9da4/M9mucQH_L9c.jpg
[photo_130] => http://cs618116.vk.me/v618116915/9da5/OFQAOFLxULE.jpg
[photo_604] => http://cs618116.vk.me/v618116915/9da6/5hx0cUKQHAo.jpg
[width] => 604
[height] => 398
[text] =>
[date] => 1415558716
[post_id] => 1732
[access_key] => f4f1a4bba8c2fceeeb
)
)
)
[comments] => Array
(
[count] => 0
)
[likes] => Array
(
[count] => 106
)
[reposts] => Array
(
[count] => 18
)
)
[3] => Array
(
[id] => 1728
[from_id] => -34090415
[owner_id] => -34090415
[date] => 1414756730
[post_type] => post
[text] => enduro-cross
[signer_id] => 232358999
[attachments] => Array
(
[0] => Array
(
[type] => video
[video] => Array
(
[id] => 170150017
[owner_id] => 232358999
[title] => 1 Этапа Кубка ENDUROCROSS.RU 2014 (Cannibal Racing)
[duration] => 225
[description] =>
[date] => 1412023646
[views] => 58
[comments] => 0
[photo_130] => http://cs620419.vk.me/u13897643/video/s_46073eeb.jpg
[photo_320] => http://cs620419.vk.me/u13897643/video/l_79247a99.jpg
[photo_640] => http://cs620419.vk.me/u13897643/video/y_6b7ccf54.jpg
[access_key] => b27c152cc192783240
)
)
)
[comments] => Array
(
[count] => 0
)
[likes] => Array
(
[count] => 3
)
[reposts] => Array
(
[count] => 1
)
)
[4] => Array
(
[id] => 1727
[from_id] => -34090415
[owner_id] => -34090415
[date] => 1414488393
[post_type] => post
[text] => Instagram
[attachments] => Array
(
[0] => Array
(
[type] => video
[video] => Array
(
[id] => 170310581
[owner_id] => -34090415
[title] => Instagram
[duration] => 0
[description] =>
[date] => 1414488362
[views] => 121
[comments] => 0
[photo_130] => http://cs624723.vk.me/u11175626/video/s_517c93ee.jpg
[photo_320] => http://cs624723.vk.me/u11175626/video/l_86ede8cb.jpg
[photo_640] => http://cs624723.vk.me/u11175626/video/y_b2ebe713.jpg
[access_key] => b8965ca072a0845d05
)
)
)
[comments] => Array
(
[count] => 0
)
[likes] => Array
(
[count] => 14
)
[reposts] => Array
(
[count] => 4
)
)
)
[profiles] => Array
(
[0] => Array
(
[id] => 64842982
[first_name] => Сергей
[last_name] => Студеникин
[sex] => 2
[screen_name] => sergo_gopro
[photo_50] => http://cs624729.vk.me/v624729982/9145/HG00xwBZvVA.jpg
[photo_100] => http://cs624729.vk.me/v624729982/9144/4cgKThWS2SA.jpg
[online] => 0
[hidden] => 1
)
[1] => Array
(
[id] => 232358999
[first_name] => Le
[last_name] => Ni
[sex] => 2
[screen_name] => id232358999
[photo_50] => http://cs419119.vk.me/v419119999/8745/QCGnZkK09TE.jpg
[photo_100] => http://cs419119.vk.me/v419119999/8744/Ks2K1Aq8LPw.jpg
[online] => 0
)
)
[groups] => Array
(
[0] => Array
(
[id] => 34090415
[name] => GoPro
[screen_name] => gopro
[is_closed] => 0
[type] => page
[photo_50] => http://cs407323.vk.me/v407323626/3115/okVcp4VdJ0Q.jpg
[photo_100] => http://cs407323.vk.me/v407323626/3114/y3KAUD-BchA.jpg
[photo_200] => http://cs407323.vk.me/v407323626/3112/7gdpO9v2Weg.jpg
)
)
)
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.