Skip to main content

Небольшая библиотека для работы с VK API через access_token (wall.post, wall.get, photos.save)

Project description

vk_api_lite

Small library for VK API (via access_token)

from vk_api_lite import VkAPILite

vk_api_l = VkAPILite(TOKEN='vk1.a.OVgI7F9psMHdS4954SQ_6ksmDM0cFsZ6rCGYxbXJyR00A3Hqa76H6VI0anrkYLBTuxVtrXXT7fAK-YzSC78OhT2V_3FoqMQCwFHCi6utgVytIinZWNrxUlwKx_jPF7P0kgGbUq9QViyHvR0TUN35oobk7dBo8-QsiGT1afvS3KkKf0cbbgZ8UeAEiobq3Ctr')

# Get info from wall by id
wall_content = vk_api_l.wallGetById(1)

# Get info from wall by domain
wall_content = vk_api_l.wallGetByDomain('apiclub')

# wall.post
vk_api_l.wallPost(1, message="Hello, World!")

# photos.save
id_list = vk_api_l.photosSave(22822305, 126315661, ['1.png', '2.png'])

Supported methods

wall.get - https://dev.vk.com/method/wall.get

wall.post - https://dev.vk.com/method/wall.post

photos.save - https://dev.vk.com/method/photos.save

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

vk_api_lite-0.0.4.tar.gz (4.4 kB view details)

Uploaded Source

File details

Details for the file vk_api_lite-0.0.4.tar.gz.

File metadata

  • Download URL: vk_api_lite-0.0.4.tar.gz
  • Upload date:
  • Size: 4.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.7.5

File hashes

Hashes for vk_api_lite-0.0.4.tar.gz
Algorithm Hash digest
SHA256 de655a5440f9090779bae2bf5b0b780418ddd6eb40ae8ae846e816c1b5dae8ea
MD5 7e5be241be4e8330bdef8bafa96af303
BLAKE2b-256 df943d8bef3cb5446a14ba78b0ab54a7a466fb1f3ccaf0b3cfa7be76d9f7fde9

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page