Skip to content

dmdnkv/api-vk-client

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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));    

Releases

No releases published

Packages

No packages published