R
R
rusgayfer2018-03-09 17:50:45
In contact with
rusgayfer, 2018-03-09 17:50:45

Is the execute request made correctly?

You need to make a data request using the execute method. Am I making the request correctly?

$code = urlencode('return API.wall.get(
          {
      "owner_id":"'.$group.'",
      "filter":"owner",
      "count":"2",
      "access_token":"'.$token.'",
      "v":"5.73"
          });
          ');
$groupinfo = json_decode(file_get_contents("https://api.vk.com/method/execute?code={$code}&access_token={$_SESSION['access_token']}"));

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
VK API, 2018-03-09
@vkapi

Not right. Both the API version and access_token need to be passed only to execute, they are translated into code. They are no longer needed in the call.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question