Answer the question
In order to leave comments, you need to log in
What vk api methods are available with php
I am making an open api application, using the class vkontakte.ru/source/APIServerPHPClass.zip
As it turned out, the main part of the methods is not available.
So it works: So it doesn't: Question: where can I specifically read which methods are available, which are not?
Or am I doing something wrong?
<?
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);
?>
<?php
require 'vkapi.class.php';
$api_id = id приложения; // Insert here id of your application
$secret_key = 'ключ'; // Insert here secret key of your application
$VK = new vkapi($api_id, $secret_key);
$resp = $VK->api('photos.getAlbums', array('uid'=>'id пользователя'));
print_r($resp);
?>
Answer the question
In order to leave comments, you need to log in
I had that too. Most likely, the application has not yet been verified by the administration. In order to register, it is not necessary to have an application ready for use. In my voting application, only a list was displayed of those for whom it was possible to vote. In the description I wrote everything I want to do here and a day later it was confirmed to me.
You are doing everything right, but I couldn’t find which methods myself, but I know for sure that after the administration passes, everything is available with AJAX requests from JS and HTTP from PHP.
Try
$VK = new vkapi($api_id, $secret_key);
$resp = $VK->api('isAppUser', array('uid'=>'id'));
print_r($resp);
or
$VK = new vkapi($api_id, $secret_key);
$resp = $VK->api('getUserSettings', array('uid'=>'id'));
print_r($resp);
if there are ones, then the application is installed by the user with id = id and the rights are the most minimal.
for rights bitmasks see here
I misunderstood the question, or are all api methods available to PHP, and you can use them with a banal fiile_get_contents giving parameters as get requests?
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question