0.0.4 • Published 7 years ago

vk-node v0.0.4

Weekly downloads
1
License
ISC
Repository
-
Last release
7 years ago

vk-node

VK API for Node.js

Installation

npm install vk-node --save

Dependencies

  • request: Simplified HTTP request client.

Dev Dependencies

None

Examples

var api = require('vk-api');
var vk = new api("access_token");

vk.method('database.getCities', {"country_id": 1}, (err, res) => {
	console.log(res);
});
{ count: 19,
  items:
   [ { id: 1, title: 'Москва', importa
     { id: 2, title: 'Санкт-Петербург'
     { id: 10, title: 'Волгоград' },
     { id: 37, title: 'Владивосток' },
     { id: 153, title: 'Хабаровск' },
     { id: 49, title: 'Екатеринбург' }
     { id: 60, title: 'Казань' },
     { id: 61, title: 'Калининград' },
     { id: 72, title: 'Краснодар' },
     { id: 73, title: 'Красноярск' },
     { id: 95, title: 'Нижний Новгород
     { id: 99, title: 'Новосибирск' },
     { id: 104, title: 'Омск' },
     { id: 110, title: 'Пермь' },
     { id: 119, title: 'Ростов-на-Дону
     { id: 123, title: 'Самара' },
     { id: 151, title: 'Уфа' },
     { id: 158, title: 'Челябинск' },
     { id: 42, title: 'Воронеж' } ] }
var api = require('vk-api');
var vk = new api("access_token");

vk.method('wall.get', {}, (err, res) => {
	console.log(res);
});

All methods

License

ISC

0.0.4

7 years ago

0.0.3

7 years ago

0.0.2

7 years ago

0.0.1

7 years ago