This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const MESSAGE = `😉 Добавлю всех в друзья! 😉 | |
🤝🏻 Приму всех 🤝🏻 | |
✊🏻 Могу сделать подписку на ваш ютуб канал ✊🏻`; | |
const GROUP_IDS = [10190856, 24261502, 25885216, 33690971, 33764742, 39130136, 46258034, 47484197, 56558556, 59721672, 94946045, 99839307, 14731082]; | |
let i = 0; | |
let limit = 1000; | |
const sendWall = (groupId) => ( |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const MESSAGE = `Привет! Не можешь найти с кем сыграть кв или треню? ☺ | |
Тогда пиши нам в группу ВК в личное сообщение: https://vk.com/rbn_so2 и мы обязательно сыграем 😜`; | |
const GROUP_IDS = [40228238, 169415158]; | |
let i = 0; | |
let limit = 1000; | |
const sendWall = (groupId) => ( | |
vk._api( |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$data = [ | |
'q' => '', // Что ищешь? | |
'count' => 1, // Сколько записей выведешь | |
'access_token' => '', | |
'v' => '5.101' | |
]; | |
$json = json_decode(file_get_contents('http://api.vk.com/method/audio.search' . http_build_query($data))); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$data = [ | |
'q' => '', // Что ищешь? | |
'count' => 1, // Сколько записей выведешь | |
'access_token' => '', | |
'v' => '5.101' | |
]; | |
$json = json_decode(file_get_contents('http://api.vk.com/method/audio.search' . http_build_query($data))); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$data = [ | |
'q' => '', // Что ищешь? | |
'count' => 1, // Сколько записей выведешь | |
'access_token' => '', | |
'v' => '5.101' | |
]; | |
$json = json_decode(file_get_contents('http://api.vk.com/method/audio.get' . http_build_query($data))); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
function get_wall(int $owner_id): array | |
{ | |
$db = DbMysqlProvider::getConnection(); | |
$db->where('owner_id', $owner_id); | |
$db->where('active', 1); | |
$db->orderBy('date', 'DESC'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
function get_wall(int $owner_id): array | |
{ | |
$db = DbMysqlProvider::getConnection(); | |
$db->where('owner_id', $owner_id); | |
$db->where('active', 1); | |
$db->orderBy('date', 'DESC'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function get_wall(int $owner_id): array | |
{ | |
$db = DbMysqlProvider::getConnection(); | |
$db->where('owner_id', $owner_id); | |
$db->where('active', 1); | |
$db->orderBy('date', 'DESC'); | |
$wall = $db->get('wall'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function get_wall(int $owner_id): array | |
{ | |
$db = DbMysqlProvider::getConnection(); | |
$db->where('owner_id', $owner_id); | |
$db->where('active', 1); | |
$db->orderBy('date', 'DESC'); | |
$raw_wall = $db->get('wall'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"response": { | |
"count": 6, | |
"items": [ | |
{ | |
"id": 7, | |
"owner_id": 1, | |
"text": "", | |
"date": 1590245162, | |
"likes": { |