Vkontakte API server-to-server

0 like 0 dislike
25 views
As we know, VK there are several ways to work with the API:
  • using JS from a third-party website or from an embedded application
  • ActionScript for applications
  • and Desktop applications
In order to organize the work with the service at the time when the user is not on the site I never found, in other words, there is no way to make the API requests server-to-server (except for a few specific functions).

At one point it seemed that it is possible to mask the server under a desktop app, but there is a fly in the ointment, after you go to the site Vkontakte authorization, it is unable to transfer any data to our server.

So the question is. Is there a way to organize vzaimodeistvie with Vkontakte API in the server-to-server?
by | 25 views

2 Answers

0 like 0 dislike
If you want impact on the user of the application, you can use a set of functions:
\rvkontakte.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
\r
Specifically, the Methods require a third party server.
Policy rest API Vkontakte does not allow.
Small hint: all the information you need to use in processing, and you need to collect/update at the time of authorization of the user via your app.
by
0 like 0 dislike
If the server php is unable to use a class OAuth, it is already built into php to communicate server-to-server
In General, this is done using curl.
So for example delatsya getting Mizuki:
\r
$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, THIS, false); curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, false); $data = curl_exec($ch); curl_close($ch); 

The URLs for which it is necessary to request what you want can be found in the documentation in vkontaktike
by

Related questions

0 like 0 dislike
3 answers
asked Apr 1, 2019 by alekseyshavrak
0 like 0 dislike
1 answer
asked Aug 12, 2019 by Kochan72
0 like 0 dislike
1 answer
110,608 questions
257,186 answers
0 comments
32,830 users