VK.com API for Node
JavaScript CoffeeScript
Switch branches/tags
Nothing to show
Latest commit a2d518e Aug 26, 2013 @stevebest 0.3.0
Permalink
Failed to load latest commit information.
examples/simple
test
.gitignore
.npmignore
Makefile
README.md
index.js
package.json

README.md

node-vkontakte

VK.com API for Node.

Usage

Using signed requests.

var vkontakte = require('vkontakte');

var vk = vkontakte('CLIENT ID', 'CLIENT SECRET');
vk('users.get', { uid: 1, fields: 'uid,first_name,photo' }, function (err, user) {
  console.log(user);
});

Using OAuth access token.

var vkontakte = require('vkontakte');

var vk = vkontakte('ACCESS TOKEN');
vk('friends.get', { fields: 'uid,first_name,photo' }, function (err, friends) {
  console.log(friends);
});

Streaming

Results of making the API requests are returned in form of Node streams, and can be piped and whatnot.

vk('friends.get', { /* snip */ }).pipe(process.stdout);

Author

Stepan Stolyarov (stepan.stolyarov@gmail.com)

© 2012

License

MIT