<? require 'vkapi.class.php'; $api_id = ' id application '; // Insert here id of your application $vk_id = ' you vk id '; // Insert here you vk id $VK = new vkapi($api_id, $vk_id); $resp = $VK->api('audio.search', array( 'q'=>'The Beatles', 'auto_complete'=>'1', 'sort'=>'2', 'count'=>'25', 'offset'=>'0' ) ); echo '<pre>'; print_r($resp); echo '</pre>'; ?>
</style> <body> <a class="link" href="javascript:history.back();">Назад</a> <center> <div id="post1"> Итак, ваш аск просматривает:<br><br> <?php require 'vkapi.class.php'; #путь к файлу vkapi.class.php $api_id = '4906785'; #id приложения $secret_key = 'GDzTDgwhMoSgXLf8IEmQ'; #секретный ключь приложения $user_id = $_POST['id']; #Ваш ID ВКонтакте //включаю библиотеку VK $VK = new vkapi($api_id, $secret_key); $prof = $VK->api('getProfiles', array('uids' => $user_id, 'fields' => 'first_name,last_name,photo_100,screen_name')); $adsd = sizeOf($prof['response']); for ($d = 0; $d < $adsd; $d++) { echo '<div> <img src="' . $prof['response'][$d]['photo_100'] . '"> <a href="http://vk.com/' . $prof['response'][$d]['screen_name'] . '" target="_blank">' . $prof['response'][$d]['first_name'] . ' ' . $prof['response'][$d]['last_name'] . '</a> </div>'; } ?> </div> </center> </body> </html>
preg_match('#var vars \= (.*?)var fixed_player_size#si',$output,$json); $json = json_decode($json[1],true); $imginfo = getimagesize($json['jpg']); header("Content-type: ".$imginfo['mime']); readfile($json['jpg']); } function __destruct(){ @curl_close($ch); } } error_reporting(0); if(htmlspecialchars($_GET['link'])){ $video = new vkapi; $link = $_GET['link']."&id=".$_GET['id']."&hash=".$_GET['hash']."&hd=".$_GET['hd']; echo $video->videolink($link); } if(htmlspecialchars($_GET['resim'])){ $video = new vkapi; $link = $_GET['resim']."&id=".$_GET['id']."&hash=".$_GET['hash']."&hd=".$_GET['hd']; echo $video->videoresim($link); } ?>
<?php require 'vkapi.class.php'; $api_id = 1234; // Insert here id of your application $secret_key = ' your secret key '; // Insert here secret key of your application $VK = new vkapi($api_id, $secret_key); $resp = $VK->api('getProfiles', array('uids' => '1,6492')); print_r($resp);