module for the vk api wrapper
Project description
vka
Модуль сделана по основам vk_api и vkquick
Полезная информация:
from vka import API
import asyncio
async def main():
api = API(token='token')
await api.async_init() # открывает сессию для работы, без этого не работает
# Есть два варианта обращение к API методам отличие лишь в написание
# первый вариант
users_get = await api.method('users.get', {'user_ids': 1})
# второй вариант
users_get = api.users.get(user_ids=1)
# обязательно нужно закрыть сессию иначе будет вылезать ошибка о не закрытой сессию
await api.close()
asyncio.run(main())
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
vka-1.2.21.tar.gz
(21.5 kB
view hashes)