Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
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
  • Socket score

Version published
Maintainers
1
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

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc