Long answer from the WC server



  • A very long answer from the WC server. What's the matter?

    echo '<pre>';
    foreach ($clubs as $club) {
        $posts = json_decode(file_get_contents('https://api. vk. com/method/wall.get?count=100&owner_id=-'.$club.'&filter=others&v=5'), true);
        foreach ($posts['response']['items'] as $post) {
            if ($post['from_id'] == $user_id) {
                print_r(json_decode(file_get_contents('https://api.vk.  com/method/wall.delete?owner_id=-'.$club.'&post_id='.$post['id'].'&v=5&access_token='.$token), true));
            }
        }
        print_r(json_decode(file_get_contents('https://api .vk. com/method/wall.post?owner_id=-'.$club.'&v=5&message='.urlencode($message).'&access_token='.$token), true));
        echo '<pre>';
    }
    ?>
    


    1. Maybe you're bombing API too often. https://vk.com/dev/api_requests Then they come back https://vk.com/dev/errors instead of what you're looking for, response;
    2. You bombs. uniform - The Contact doesn't affix its exact limits, but the frequent challenge to the method wall.post() They're not gonna miss it, they're gonna make a mistake again. Alternatively, they can. https://vk.com/dev/captcha_error ;

    Total - provide for the possibility that the answer api will not contain the properties responseAnd he's gonna be in his place. error - process such mistakes.


Log in to reply
 


Suggested Topics

  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2