VK-IO - This is a powerful Node.js module that allows you to easily interact with the VK API
Features
- 100% coverage of the VKontakte API
- Predictable abstraction
- Working with large collections of data
- Support for all types authorization of login and password
Migrating to 4.0.0
You can read the about migration guide here
Old version of the library here
Installation
Node.js 8.0.0 or newer is required
Yarn
Recommended, auto assembly
yarn add vk-io
NPM
npm install vk-io --save
Example usage
import VK from 'vk-io';
const vk = new VK();
vk.setToken(process.env.TOKEN);
async function run() {
const response = await vk.api.wall.get({
owner_id: 1
});
console.log(response);
}
run().catch(console.log); // async/await "sugar"