Skip to content
This repository was archived by the owner on Dec 30, 2024. It is now read-only.
/ vk-client Public archive

Небольшой фреймворк для удобной работы с VK API

Notifications You must be signed in to change notification settings

APIdogRU/vk-client

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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]) => {
    // ...
});

About

Небольшой фреймворк для удобной работы с VK API

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •