Skip to main content

vkpoint_api (v 2.0.8)

vkpoint - это python модуль для работы с монетой VK Point (VK Point API Wrapper)

Установка модуля

python -m pip install vkpoint_api

Работа с модулем

Лёгкий старт в модуле

from vkpoint import VKPoint

VKPointSession = VKPoint(user_id = 123456789, token = '_tokentokentokentokentokentoken_', hosting = 'https://site.org/')
  • user_id - Ваш ID от Социальной сети Вконтакте
  • token - Токен VKPoint (ключ получаем здесь)
  • hosting - Ссылка на хостинг, где установлен скрипт

4-ре основных метода в VKPoint Wrapper

--> MerchantSend

Перевод VK Point с аккаунта на другой аккаунт. Учтите, перевод работает только на те аккаунты, которые есть в приложении VK Point.

Python
VKPointSession.merchantSend(user_id = 151631142, point = 0.001)
  • user_id - кому переводим
  • point - сумма перевода (Учтите! Что если вы укажите 1 по переведётся 1. Если 0.001, то переведётся соответственно 0.001)

Ответ

{
  "user_id": "151631142", 
  "amount": 0.001, 
  "user_id_to": "111111111"
}
  • user_id_to - От кого был перевод

--> getPoint

Вывод данных профиля

Python
VKPointSession.getPoint(user_id = 151631142)
  • user_id - Чьи данные выводим (Не указываем user_id, если нужно вывести информацию о себе)
Ответ
{
  "id": "", 
  "user_id": "151631142", 
  "first_name": "Илья", 
  "last_name": "Светский", 
  "photo": "https://sun9-12.userapi.com/c850724/v850724626/1dfcc8/Pxx44odNlxM.jpg?ava=1", 
  "myning": "0", 
  "user_agent": null, 
  "ban": "0", 
  "reason_ban": "", 
  "bot": "20", 
  "admin": "0", 
  "verified": "0", 
  "point": 2132191251, 
  "balance": 10, 
  "balance_set": "15", 
  "city_title": "", 
  "count_users": "73473", 
  "count_groups": "1022", 
  "click": 0.525, 
  "click_count": 1, 
  "summTimeSpeed": "1", 
  "summTimeSpeed_count": "1", 
  "summTimeZhuk": "47", 
  "summTimeZhuk_count": "15", 
  "summTimeServer": "297573", 
  "summTimeServer_count": "61", 
  "summTimeGeympad": "457", 
  "summTimeGeympad_count": "22", 
  "summTimePlata": "6772090", 
  "summTimePlata_count": "57", 
  "summTimeProces": "55457716", 
  "summTimeProces_count": "64", 
  "debug": "0", 
  "date_visit": 1575297129, 
  "online": 0
}

--> MerchantGet

Выводит информацию о том, сколько отправлено поинтов пользователю (переводы). Этим методом можно подсчитать сколько осталось до лимита (1KК ботам)

Python
VKPointSession.MerchantGet(user_id = 151631142)
  • user_id - ID пользователя с кем проверяется остаток по выводам
Ответ
{
  "count_trans_day": 0
}
  • count_trans_day - Количество сколько переведено

--> HistoryTransactions

Вывод истории переводов пользователя

Python
VKPointSession.HistoryTransactions(user_id = 151631142)
  • user_id - ID пользователя, чью выводим историю (Оставить пустым, если если нужно вывести свою историю переводов)
Ответ
{
  "count_day": "24", 
  "items": [
    {
      "id": "1726502", 
      "first_name": "Alex", 
      "last_name": "Alex", 
      "photo": "https://vk.com/images/camera_200.png?ava=1", 
      "datetime": 1575301326, 
      "info": {
        "type": "translated", 
        "type_store": "", 
        "point": 4000000, 
        "user_id": "550025221", 
        "datetime": 1575301326
      }
    }
  ]
}
  • items - Список 100 последних транзакций

Как обращаться к остальным методам?

from vkpoint import VKPoint

VKPointSession = VKPoint(user_id = 123456789, token = '_tokentokentokentokentokentoken_')
VKPointMerchant = VKPointSession.GetApi()

Приведу несколько примеров Топ пользователей, Топ вип пользователей и Топ по сообществам

Обращение к другим методам не требует вводить свой ID или access_token к примеру в методе --> callback.getUser

Подмечу, что только свой не нужно вводить

Если требуется, что-то сделать с другим пользователем, то его ID нужно ввести будет

--> users.getTop

Вывод общего топа пользователей

VKPointMerchant.users.getTop(count = 100)
  • count - Количество выводимых пользователей

--> users.getTopVip

Вывод общего топа VIP пользователей

VKPointMerchant.users.getTopVip(count = 100)
  • count - Количество выводимых пользователей

--> groups.getTop

Вывод топа сообществ

VKPointMerchant.groups.getTop(count = 100)
  • count - Количество выводимых сообществ

Связь

ВКонтакте

Metadata

Release files for vkpoint-api 2.0.8

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for vkpoint-api 2.0.8
File Size Uploaded Provenance Actions
vkpoint_api-2.0.8.tar.gz 5.3 kB Without provenance Details for vkpoint_api-2.0.8.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for vkpoint-api 2.0.8
File Interpreter ABI Platform Actions
vkpoint_api-2.0.8-py3-none-any.whl Python 3 none any Details for vkpoint_api-2.0.8-py3-none-any.whl

Total release size: 14.7 kB

Release files / vkpoint_api-2.0.8.tar.gz

Download URL vkpoint_api-2.0.8.tar.gz
Size 5.3 kB
Tags Source
SHA-256 checksum
How to use checksums
5921d782059fd198075050c6c104f827f2b8001cf6837bf7a9b077eabaee5360
BLAKE2b-256 checksum
How to use checksums
47db77cc742aaa7c65ef0f07190a0beeb6a0badba1a626c1670028df0e87e9b9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/42.0.2 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.7.4

Release files / vkpoint_api-2.0.8-py3-none-any.whl

Download URL vkpoint_api-2.0.8-py3-none-any.whl
Size 9.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e4b349aa4f49ab84c307d2ff6c405a51a12dffe08a69cfc5a5ee59c307e9fd87
BLAKE2b-256 checksum
How to use checksums
ba04e0d50d7b7be8f09fa6821b1662d6d2ed07de03b42e5c9d62673df74ccaca
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/42.0.2 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.7.4

Security for vkpoint-api 2.0.8

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page