api-vk-client

1.0.2 • Public • Published

ApiVkClient

VK API Client written in Node.JS (all methods return promises provided by bluebird library)

Example


const ApiVkClient = require("api-vk-client");
const client = new ApiVkClient("ACCESS_TOKEN_HERE");

// the same as call "sendMessageToUser"  
client.apiPost("messages.send", { user_id: 185014513, message: "Test Message"})
  .then(response => console.log(response))
  .catch(error => console.log(error));
    
client.sendMessageToUser(185014513, "Test Message")
  .then(response => console.log(response))
  .catch(error => console.log(error));    

Readme

Keywords

Package Sidebar

Install

npm i api-vk-client

Weekly Downloads

2

Version

1.0.2

License

Apache-2.0

Last publish

Collaborators

  • dmdnkv