vk-universal-api

0.2.0 • Public • Published

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 custom uploadAlbumImage method
  • v0.1.0 - breaking changes due to universal-api refactoring

License

MIT © ewnd9

Dependencies (1)

Dev Dependencies (2)

Package Sidebar

Install

npm i vk-universal-api

Weekly Downloads

5

Version

0.2.0

License

MIT

Last publish

Collaborators

  • ewnd9