Catalog npm
Back to packageRELEASE DETAILS

1.0.1

npm

1vk

smart and efficient sdk for vk.com API

apisdkvkvk.comvkapivkcomvkontaktevksdk
Published23 Mar 2015
Direct dependencies9
Transitive dependenciesNot calculated

README

Current package documentation

1vk

Smart and efficient sdk for vk.com API

Behind the scene:

  1. It uses execute api method to perform more api calls per permitted time interval.
    In fact, you have only 3 request per second permitted but with 1vk you get up to 75 request per second
  2. It handles "Too many requests per second" error thus you no more need to concern about it.

Install

npm i 1vk --save

How to use

With browser (vk.com open api sdk)

var ApiQueue = require("1vk");
// initialization and authorisation (VK.init , VK.Auth.login)
// then
var apiQueue = new ApiQueue(3, 1e3, VK.Api.call)
var usersFriends = [];
// gets friends for 1000 users
for (var i=0; i<1e3; i=i+1)
    apiQueue.request('friends.get', {user_id: i}).then(function(friends) {
        usersFriends.push(friends)
    })
console.dir(usersFriends);

With node

You can use any open api like library (function api(methodName, params, callback))

Docs

Please read source code. The code is pretty simple and jsdoc annotated.

Downloads & popularity

Awaiting observations

No metric observations yet

Download counts and popularity will appear here as the collector receives them.

Declared dependencies 9

Native requirements
9 direct targetsNot calculated transitive count
Package / targetRequirementRelationship
underscore
Environment
{
  "local_name": "underscore",
  "alias": false,
  "peer_metadata": null
}
^1.8.2runtime
when
Environment
{
  "local_name": "when",
  "alias": false,
  "peer_metadata": null
}
^3.7.2runtime
browserify
Environment
{
  "local_name": "browserify",
  "alias": false,
  "peer_metadata": null
}
^9.0.3development
exorcist
Environment
{
  "local_name": "exorcist",
  "alias": false,
  "peer_metadata": null
}
^0.1.6development
gulp
Environment
{
  "local_name": "gulp",
  "alias": false,
  "peer_metadata": null
}
^3.8.11development
gulp-uglify
Environment
{
  "local_name": "gulp-uglify",
  "alias": false,
  "peer_metadata": null
}
^1.1.0development
gulp-util
Environment
{
  "local_name": "gulp-util",
  "alias": false,
  "peer_metadata": null
}
^3.0.4development
vinyl-source-stream
Environment
{
  "local_name": "vinyl-source-stream",
  "alias": false,
  "peer_metadata": null
}
^1.1.0development
watchify
Environment
{
  "local_name": "watchify",
  "alias": false,
  "peer_metadata": null
}
^2.6.0development

Distribution files

1 collected
Distribution 1

Source distribution

Source file
Checksums from source
{
  "shasum": "22fbe89c361ba1fc86bb7f06b0bdb8293d3ab01e",
  "tarball": "https://registry.npmjs.org/1vk/-/1vk-1.0.1.tgz",
  "integrity": "sha512-07Ldn9qcbRjUF2n3rKDWSDwLtLtEx//GMVbuONzruZBlkUWldCd737DI92f1wSbDaKyw4mL4PdT94wGXOc+1mQ==",
  "signatures": [
    {
      "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA",
      "sig": "MEUCIQDtaW5Mzk03DoQL9RXzze5MPROWtRy0Irz9G31EZy/H8AIgLeF8ixtE/fhy63nzvEbUaZoPqyEuWJEVsuQCQRn0Cag="
    }
  ]
}

Repository

PENDING
ziggreen/1vk

Shared repository data · GitHub

License detected in repository
Not collected

Metadata history

Meaningful changes
Current collected state Current

Observed since 20 Oct, 18:40 UTC

No superseded metadata states collected. Unchanged observations do not create new revisions.

Record identity

package_version:7f3e7bbf5fb468c33eb0c86e6fa67547a65b617fdf2c6ba4e2ed7193b60dac64

Other collected versions

1.3.310 Dec1.2.34 Dec1.2.23 Dec1.2.13 Dec1.2.03 Dec1.0.223 MarView all collected versions →