_http://api.vk.com/oauth/authorize?client_id=##ID##&redirect_uri=http://api.vk.com/blank.html&scope=####&display=#### &response_type=token
access_token=93f22a20ddf1174f939108d43e936cd6bb193469344639c2d1c268f3f65fa86 &expires_in=86400&user_id=11347652
_https://api.vkontakte.ru/method/####?##_##=##_## &access_token=##,_##
<><>_<id>
(Example: photo100172_166443618).
_https://api.vkontakte.ru/method/messages.send?uid=66392446&message=&title=&access_token= 93f22a20ddf1174f939108d43e936cd6bb193469344639c2d1c268f3f65fa86
{"response":10847}
<?php
$token='93f22a20ddf1174f939108d43e936cd6bb193469344639c2d1c268f3f65fa86';
// ,
$day = '15';
$month = '11';
//,
$year = '2011';
function dateDiff($startDay, $endDay) {
$endDay = strtotime($endDay);
$startDay= strtotime($startDay);
$difference = abs($endDay - $startDay);
$return['days'] = floor($difference / 86400);
$return['hours'] = floor($difference / 3600) % 24;
$return['minutes'] = floor($difference / 60) % 60;
return $return;
}
$date=dateDiff(date("jnY G:i"),'19-11-2011 9:00');
$phrases = "/var/www/public/1.txt";//
$z = file ($phrases);
$cz = count ($z) -1;
$r = rand (0, $cz);
//
$text=" $date[days] , $date[hours] .$z[$r]";
$sRequest = "https://api.vkontakte.ru/method/status.set?text=$text&access_token=$token";
echo $text;
//
$oResponce = json_decode(file_get_contents($sRequest));
$text=urlencode($text);
Source: https://habr.com/ru/post/131943/