SkillAgentSearch skills...

Vkontakte

vkontakte.ru python API wrapper

Install / Use

/learn @kmike/Vkontakte
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

========= vkontakte

.. image:: https://travis-ci.org/kmike/vkontakte.png?branch=master :target: https://travis-ci.org/kmike/vkontakte .. image:: https://coveralls.io/repos/kmike/vkontakte/badge.png?branch=master :target: https://coveralls.io/r/kmike/vkontakte

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 vkontakte

Usage

::

>>> import vkontakte
>>> vk = vkontakte.API('my_api_id', 'my_api_secret')
>>> print vk.getServerTime()
1282689362

>>> vk = vkontakte.API(token='my_access_token')
>>> print vk.getServerTime()
1282689362

>>> profiles = vk.getProfiles(uids='1,2', fields='education')
>>> pavel = profiles[0]
>>> print pavel['last_name'], pavel['university_name']
Дуров СПбГУ

>>> # alternative syntax
>>> profiles = vk.get('getProfiles', uids='1,2', fields='education')
>>> pavel = profiles[0]
>>> print pavel['last_name'], pavel['university_name']
Дуров СПбГУ

>>> # custom timeout example (default timeout = 1s)
>>> vk = vkontakte.API('my_api_id', 'my_api_secret', timeout=5)
>>> print vk.getServerTime()
1282689362

>>> # syntax sugar for 'secure.*' methods
>>> print vk.secure.getSMSHistory()
None

All API methods that can be called from server should be supported.

See http://bit.ly/9Nzc8h for detailed API help.

OAuth2 access_token is supported (docs are here http://vkontakte.ru/developers.php?oid=-1&p=Авторизация)

View on GitHub
GitHub Stars61
CategoryDevelopment
Updated1y ago
Forks22

Languages

Python

Security Score

80/100

Audited on Apr 3, 2025

No findings