Answer the question
In order to leave comments, you need to log in
How to make a VK execute API request?
The site has a lot of requests to the VK API, I take all the data for the site from VK, and therefore the pages take a long time to load. Is it possible to fix this somehow?
How to make this request in execute? I always did file_get_contents but it takes a long time to load and frequent requests come up with such an error.
$usersad = json_decode(file_get_contents("https://api.vk.com/method/users.get?user_ids={$_SESSION['user_id']},{$idadminsurlecode}&name_case=acc&v=5.67"), true);
Answer the question
In order to leave comments, you need to log in
If you use your personal key for everything, then you need to write an API that will accept input parameters as you like, and then make requests to VK API. In this case, you can implement key enumeration (and the restrictions apply to the key, not to ip). And there to implement execute.
How to write the execute request itself is well described in the documentation, js like syntax.
How to make this request in execute
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question