🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
DemoInstallSign in
Socket

vk-ts

Package Overview
Dependencies
Maintainers
1
Versions
50
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

vk-ts

Typesafe lightweight library to make requests to VK api

0.22.7
latest
Source
npm
Version published
Weekly downloads
50
455.56%
Maintainers
1
Weekly downloads
 
Created
Source

VK TypeScript

Typesafe lightweight library to make requests to VK api

GitHub license npm version

Installation

Using npm:

npm install vk-ts

Using yarn:

yarn add vk-ts

Usage

import VK from 'vk-ts'

// Learn how to get access token here:
// https://vk.com/dev/access_token
const accessToken = 'my_vk_api_token'
const vk = new VK(accessToken)

const info = await vk.accountGetProfileInfo()
console.log(`Hello, ${info.first_name}!`)

Pros

  • Typesafe
  • Lightweight

Cons

  • Small coverage of api
  • No built-in authentication

Available api methods

  • account.getProfileInfo
  • docs.get
  • docs.getUploadServer
  • docs.save
  • docs.upload
  • messages.delete
  • messages.messagesGetByConversationMessageId
  • messages.messagesGetConversationMembers
  • messages.messagesRemoveChatUser
  • messages.messagesSearch
  • messages.messagesSend
  • messages.messagesSetActivity
  • users.get
  • utils.resolveScreenName
  • video.save
  • video.upload

Haven't found the method you're looking for? Open an issue here

FAQs

Package last updated on 09 Jan 2022

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