# vk-token

> VK access token

Latest version **0.1.2** (published 2016-08-06) · MIT license · 0 weekly downloads

## Install

```sh
npm install vk-token
pnpm add vk-token
yarn add vk-token
bun add vk-token
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.2 |
| Published | 2016-08-06 |
| First published | 2016-08-06 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Known vulnerabilities | 0 (+1 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 0 |
| Author | _TrueLecter_ |
| Maintainers | truelecter |

## Links

- npm: https://www.npmjs.com/package/vk-token
- Repository: https://github.com/TrueLecter/vk-token
- Homepage: https://github.com/TrueLecter/vk-token#readme
- npm.io page: https://npm.io/package/vk-token

## Dependencies (2)

- [request](https://npm.io/package/request.md) ^2.74.0
- [htmlparser2](https://npm.io/package/htmlparser2.md) ^3.9.1

## Recent versions

- 0.1.2 (latest) — 2016-08-06
- 0.1.1 — 2016-08-06
- 0.0.1 — 2016-08-06

## README

## vk-token
Node js module to easily get vk token from login and password.

## Usage example

```js
var vktoken = require('vk-token');

vktoken.getAccessToken(username, password, function(error, token){
	console.log(token);
});
```

## Full signature
```js 
getAccessToken(username, password, callback, appid, scopes)
```

- **username** - e-mail or phone number registred on vk.com
- **password** - user password
- **callback** - callback function.
The callback argument gets 3 arguments:
    1. **error** - request module errors if any. **null** otherwise
    2. **token** - vk access token. **null** if any errors
    3. **response** - request module last response.
- **appid** - application id to use. If nothing is specified, android official app id is used. You can pass 'android', 'ios' or 'wp' as argument for specific platform.
- **scopes** - comma-separated or array scopes list. Possible scopes are notify, friends, photos, audio, video, docs, notes, pages, status, offers, questions, wall, groups, messages, notifications, stats, ads, offline. Default are all of them.

---
_Source: https://npm.io/package/vk-token · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
