Answer the question
In order to leave comments, you need to log in
Vkontakte API server-server
As you know, Vkontakte has several ways to work with the API:
Answer the question
In order to leave comments, you need to log in
If you need to influence the user from the application, then you can use the set of functions:
vkontakte.ru/developers.php?o=-1&p=%D0%9E%D0%BF%D0%B8%D1%81%D0%B0%D0% BD%D0%B8%D0%B5+%D0%BC%D0%B5%D1%82%D0%BE%D0%B4%D0%BE%D0%B2+API
Specific - Methods that require a third-party server.
The rest of the VKontakte API policy does not allow.
A little hint: all the information that you need to use in processing can and should be collected / updated at the time of user authorization through your application.
If php is used on the server, you can use the OAuth class , it is already built into php for server-server interaction.
In general, this is done using the curl technology.
This is how getting the language is done, for example:
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, 'https://api.vk.com/method/audio.get?uid='.$uid.'&access_token='.$access_token);
curl_setopt($ch, CURLOPT_AUTOREFERER, TRUE);
curl_setopt($ch, CURLOPT_HEADER, 0);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, TRUE);
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, false);
$data = curl_exec($ch);
curl_close($ch);
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question