Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $admintoken = '6cfca69faf4d3ae84e903c916d089a32b16da52500679e';//токен админа
- $take_guid = '113695232'; //айди паблика цифры
- $date_time_array = getdate( time() );
- $cur_unix = time();
- function vkapi($method) {
- $ch = curl_init("https://api.vk.com/method/".$method);
- curl_setopt($ch,CURLOPT_RETURNTRANSFER,true);
- curl_setopt($ch,CURLOPT_SSL_VERIFYHOST,false);
- curl_setopt($ch,CURLOPT_SSL_VERIFYPEER,false);
- $response = curl_exec($ch); curl_close($ch); return $response; }
- $date_time_array = getdate( time() );
- $cur_unix = time();
- $getsuggest = vkapi('wall.get?owner_id=-'.$take_guid.'&offset=0&count=1&filter=suggests&access_token='.$admintoken.'&v=5.60');
- $decode_suggest = json_decode($getsuggest,true);
- $suggested_item = $decode_suggest['response']['items'];
- $post_id = $suggested_item['id'];
- $user_uid = $suggested_item['from_id'];
- $pubdate = $cur_unix + 600;
- $planirovka = vkapi('wall.post?owner_id=-'.$take_guid.'&signed=1&publish_date='.$pubdate.'&post_id='.$post_id.'&filter=suggests&access_token='.$admintoken.'&v=5.60');
- ?>
Advertisement
Add Comment
Please, Sign In to add comment