Initial commit

This commit is contained in:
2022-01-21 01:00:13 +03:00
commit 20ad4adfe8
7 changed files with 18781 additions and 0 deletions

16
getPosts.js Normal file
View File

@@ -0,0 +1,16 @@
import axios from 'axios';
export default async function(owner_id, offset) {
const res = await axios.get('https://api.vk.com/method/wall.get', {
params: {
access_token: process.env.SERVICE_KEY,
owner_id,
offset: Number(offset),
count: 100,
filter: 'owner',
v: '5.81',
}
});
return res.data.response;
}