You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

vk-universal-api

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

vk-universal-api

vk-universal-api

0.2.0
latest
Source
npmnpm
Version published
Maintainers
1
Created
Source

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

Keywords

vk

FAQs

Package last updated on 01 Feb 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts