1.0.1 • Published 5 years ago
call-vk v1.0.1
Calling VK API methods easier
Installation
npm install --save call-vk
Get Started
For example, we call the users.get method, that returns array of users whose id we specified in user_ids
const callVk = require('call-vk')
const params = {
user_ids: 1
}
const config = {
accessToken: '<access_token>',
version: 5.95
}
callVk('users.get', params, config)
.then(users => console.log(users[0]))
.catch(console.log)