vk.com API python wrapper
Project description
=========
vk - vk.com API Python wrapper
=========
This is a vk.com (aka vkontakte.ru, largest Russian social network)
python API wrapper. The goal is to support all API methods (current and future)
that can be accessed from server.
Installation
============
::
$ pip install vk
Usage
=====
::
>>> import vk
Login via 1 of 3 ways::
>>> vk_api = vk.API('my_app_id', 'user_email', 'user_password') # or
>>> vk_api = vk.API(access_token='access_token') # or
>>> vk_api = vk.API('my_app_id', app_secret='my_app_secret') # deprecated by vk.com
Make requests::
>>> vk_api.getServerTime()
1395870238
>>> profiles = vk_api.getProfiles(uids=1)
>>> profiles[0]['last_name']
Дуров
>>> # alternative syntax
>>> profiles = vk_api('getProfiles', uids=1)
>>> profiles[0]['last_name']
Дуров
All API methods that can be called from server should be supported.
See https://vk.com/developers.php?id=-1_11226273 for detailed API help.
vk - vk.com API Python wrapper
=========
This is a vk.com (aka vkontakte.ru, largest Russian social network)
python API wrapper. The goal is to support all API methods (current and future)
that can be accessed from server.
Installation
============
::
$ pip install vk
Usage
=====
::
>>> import vk
Login via 1 of 3 ways::
>>> vk_api = vk.API('my_app_id', 'user_email', 'user_password') # or
>>> vk_api = vk.API(access_token='access_token') # or
>>> vk_api = vk.API('my_app_id', app_secret='my_app_secret') # deprecated by vk.com
Make requests::
>>> vk_api.getServerTime()
1395870238
>>> profiles = vk_api.getProfiles(uids=1)
>>> profiles[0]['last_name']
Дуров
>>> # alternative syntax
>>> profiles = vk_api('getProfiles', uids=1)
>>> profiles[0]['last_name']
Дуров
All API methods that can be called from server should be supported.
See https://vk.com/developers.php?id=-1_11226273 for detailed API help.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
vk-1.4.tar.gz
(3.9 kB
view details)
File details
Details for the file vk-1.4.tar.gz.
File metadata
- Download URL: vk-1.4.tar.gz
- Upload date:
- Size: 3.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
bfe7e6740e32d5bef4a9271fcafc6d2047c137f871e9bbf8ded466c5a7bac02e
|
|
| MD5 |
4cd2995780f86a32ce49f4d8c99ab4e6
|
|
| BLAKE2b-256 |
ad5534b3e2a2f821790cf52589632fa587b87d5c440c3a68655d8924dad15e83
|