D
D
deleted-mezhevikin2011-03-04 09:30:11
PHP
deleted-mezhevikin, 2011-03-04 09:30:11

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

4 answer(s)
D
Danila Buyanov, 2011-03-04
@DanyBoo

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.

D
Danila Buyanov, 2011-03-04
@DanyBoo

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

A
Anatoly, 2011-03-04
@taliban

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?

R
Riateche, 2011-03-04
@Riateche

Not all methods are available from the server. Methods starting with secure are definitely available, as well as some others. I did not find this in the documentation, it is determined by the poke method.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question