Nonlinear Programming Methods
Miss any of our Open RFC calls?Watch the recordings here! »

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

Install

npm i vk-universal-api

DownloadsWeekly Downloads

3

Version

0.2.0

License

MIT

Last publish

Collaborators

  • avatar