mirror of
https://github.com/anatolykopyl/vk-nft-feed.git
synced 2026-03-26 04:44:34 +00:00
Initial commit
This commit is contained in:
16
getPosts.js
Normal file
16
getPosts.js
Normal 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;
|
||||
}
|
||||
Reference in New Issue
Block a user