Socket
Socket
Sign inDemoInstall

@apidog/vk-client

Package Overview
Dependencies
0
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @apidog/vk-client

Client for making requests to VK API for APIdog


Version published
Weekly downloads
5
decreased by-76.19%
Maintainers
1
Install size
21.7 kB
Created
Weekly downloads
 

Readme

Source

APIdog Mini VK Client for Node

Using

Install:

npm i @apidog/vk-client

Import:

import VK from '@apidog/vk-client';

Create instance of client:

const vk = new VK('abcdef0123456');

Make request:

const [durov] = await vk.perform<IUser[]>('users.get', {
    userIds: 1,
    fields: ['photo_50', 'first_name_dat'],
    // 'userIds' converts to 'user_ids'
    // arrays in value converts to comma-separated string
});

// or
vk.perform<IUser[]>('users.get', {
    userIds: [1],
}).then(([durov]) => {
    // ...
});

Keywords

FAQs

Last updated on 20 Sep 2020

Did you know?

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc