Download Latest Version vk-api (26.7 kB)
Email in envelope

Get an email when there's a new version of vk-api cli client

Home / 2018-081
Name Modified Size InfoDownloads / Week
Parent folder
vk-api 2018-03-22 26.7 kB
Totals: 1 Item   26.7 kB 0
before you start, you need to authorize the application for vk.com API. to do this, open the link below in your browser (not needed since v2016-126):
https://oauth.vk.com/authorize?client_id=2311979&scope=friends,messages&redirect_uri=https://oauth.vk.com/blank.html/&display=popup&v=5.0&response_type=token
authorize if not yet and confirm access for the application.

then edit the script and set 3 variables: login, pass and my_uid ($my_uid is not set manually since v2015-172, $pass can be left blank, so you will be asked for password every time)
from now the script should authorize normally as you run it without any questions.
the interface is self-descriptive. type "h" or "help" for help.

if you face any problems or have any questions, feel free to contact at
email: dimas000{at}ya{dot}ru
jabber/xmpp: dimas000{at}jabber{dot}ru

==================
Changelog:

2018-081
* adopted to some recent api changes (they now use "user_id" or "id" tags instead of "uid" at some places, also the new requirement to add "v=<version>" param to every request)
* now we are parsing config file (used to store login/password) in more secure way instead of just sourcing it (which was actually executing it as a shell code)
* some minor code improvements

2016-126:
* manual app permissions confirmation is not needed anymore, perforned automatically when necessary (including the first run)
* temporary files (cookies, access token, etc) moved from /tmp to user-defined path (see $tmp_path)

2015-230:
* fixed password prompl, when $pass in unset/blank
* $login can now also be left blank, you will be prompted for login/pass then
* now you can store your login/pass in a separate config file to place the script in a system-wide location (see comments about $config_file)
* fixed behaviour for wrong login/pass case

2015-172:
* fixed authorization due to some changes in site's auth mechanism
* $my_uid variable is not needed to be set manually, now it's got from server response during auth
* some minor changes/fixes i don't remember already))
Source: readme, updated 2018-03-22