v-vk-api

VK API wrapper


Keywords
v-vk-api
License
MIT
Install
pip install v-vk-api==1.3

Documentation

VVK API

VK API wrapper

Description

With VK API wrapper you can use all possible VK API methods and pass all traffic through proxy. More detailed information about VK API you can see in the official documentation.

Python3 Release Documentation Status Build Status Coverage Status

Install

$ pip3 install v_vk_api

Usage

Authorization by access token

import v_vk_api

api = v_vk_api.create(app_id=1234567890, 
                        login='login', 
                        password='pass')
api.request_method('users.get', users_id=1)
{'response': [{'first_name': 'John', 'id': 123, 'last_name': 'Doe'}]}

Authorization by service token

import v_vk_api

api = v_vk_api.create(service_token='service token')
api.request_method('users.get', users_id=1)    
{'response': [{'first_name': 'Pavel', 'id': 1, 'last_name': 'Durov'}]}

Tests

Tests will check API connection and method requesting and some other helper functions like utils and exceptions, to run tests:

$ python -m unittest discover tests

NOTE: Tests can't handle CAPTCHA