R
R
rusgayfer2017-09-12 20:59:51
In contact with
rusgayfer, 2017-09-12 20:59:51

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.
0f386c39c0cc44a4bfd77aa4840f107c.png

$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

2 answer(s)
S
Serezha, 2017-09-12
Ahen @Ahen

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.

U
userfordownload, 2017-09-15
@userfordownload

How to make this request in execute

execute is 25 requests.
As I understand it, your site has a stupid parsing of users in the (accusative - acc) case.
What exactly needs to be collected?
What requests go to VK and how much?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question