vk-universal-api
Wrapper for vk.com api to interact both from node and browsers (via bundlers like browserify or webpack)
Install
$ npm install vk-universal-api --save
Usage
import api from 'vk-universal-api';
api.setToken('<string>');
api
.get('audio.search', { q: 'noisia' })
.then(([count, ...audios]) => {});
Api
api.get('<method-name>', params)
api.uploadAlbumImage('<album-id>', '<image-path>')
Tips
Changelog
v0.2.0
- add custom uploadAlbumImage
methodv0.1.0
- breaking changes due to universal-api
refactoring
License
MIT © ewnd9