Get OAuth 2.0 token from VK.
npm install -g vktoken
(or without -g
flag, if you're using it only as library)
With vktoken.json:
vktoken
See config example in vktoken.example.json.
With command line options:
vktoken --client_id 1337 --client_secret "THISISRANDOMEXAMPLE" --username "+79999999999" --password "qwertyuiop" --phone "+79999999999"
Arguments:
-
--client_id
— ID of your application; -
--client_secret
— Secret code of application; -
--username
— Your email or phone of VK; -
--password
— Your password; -
--phone
— Phone number;
MacOS (copies to clipboard):
vktoken | pbcopy
The response contains the token.
Arseniy Maximov, 2017.