vk-universal-api
v0.2.0
Published
vk-universal-api
Downloads
4
Readme
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) // any method from https://vk.com/dev/methods
api.uploadAlbumImage('<album-id>', '<image-path>') // only from node due to post upload
Tips
Changelog
v0.2.0
- add customuploadAlbumImage
methodv0.1.0
- breaking changes due touniversal-api
refactoring
License
MIT © ewnd9