Изменил находящийся в архиве файл index.php
Код: Выделить всё
<?phprequire 'vkapi.class.php'; $api_id = 111111; // Insert here id of your application$secret_key = '111111'; // Insert here secret key of your application $VK = new vkapi($api_id, $secret_key); //$resp = $VK->api('getProfiles', array('uids'=>'1'));$resp = $VK->api('getCountries','need_full'); print_r($resp);?>
Код: Выделить всё
<?phprequire 'vkapi.class.php'; $api_id = 111111; // Insert here id of your application$secret_key = '111111'; // Insert here secret key of your application $VK = new vkapi($api_id, $secret_key); //$resp = $VK->api('getProfiles', array('uids'=>'1'));$resp = $VK->api('getCountries'); print_r($resp);?>
Array ( [error] => Array ( [error_code] => 115 [error_msg] => Invalid country id [request_params] => Array ( [0] => Array ( [key] => api_id [value] => 1111111 ) [1] => Array ( [key] => format [value] => json ) [2] => Array ( [key] => method [value] => getCountries ) [3] => Array ( [key] => random [value] => 1671 ) [4] => Array ( [key] => timestamp [value] => 1300528250 ) [5] => Array ( [key] => v [value] => 3.0 ) [6] => Array ( [key] => sig [value] => 813721c6f4bb67c6952777848768085d ) ) ) )
И что я делаю не так? Как можно на PHP получить список стран?