Skip to main content

Модуль для работы с Donation Alerts API

Project description

DA API

Инструменты 🛠

Python aiohttp python-socketio websockets websocket-client

requests asyncio json datetime

Установка 💾

windows: pip install DonationAlertsAPI

linux macos: pip3 install DonationAlertsAPI

Пример использования 🎈

from flask import Flask, redirect, request
from donationalerts import DonationAlertsAPI, Scopes

app = Flask(__name__)
api = DonationAlertsAPI("client id", "client secret", "http://127.0.0.1:5000/login", Scopes.USER_SHOW)

@app.route("/", methods=["GET"])
def index():
    return redirect(api.login())


@app.route("/login", methods=["GET"])
def login():
    code = request.args.get("code")
    access_token = api.get_access_token(code)
    
    user = api.user(access_token)
    return user.objects


if __name__ == "__main__":
    app.run(debug=True)

Смотреть больше примеров

Обзоры версий 👀
Donation Alerts API Версия 1.0.0
Donation Alerts API Версия 1.0.6
Donation Alerts API Версия 2.0.0

Присоединяйся к нам

Vkontakte YouTube Telegram

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

DonationAlertsAPI-2.0.2.tar.gz (6.3 kB view details)

Uploaded Source

File details

Details for the file DonationAlertsAPI-2.0.2.tar.gz.

File metadata

  • Download URL: DonationAlertsAPI-2.0.2.tar.gz
  • Upload date:
  • Size: 6.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.26.0 requests-toolbelt/0.9.1 urllib3/1.26.5 tqdm/4.62.3 importlib-metadata/4.8.1 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.8.7

File hashes

Hashes for DonationAlertsAPI-2.0.2.tar.gz
Algorithm Hash digest
SHA256 163a507e7cd9429268d0dca2ffa62818fdca7c15ffdb232fcbbca4e815fbeca8
MD5 7b3ced384d8da240ab4af499a4915c93
BLAKE2b-256 06854a1b8de35bdd212dd34580502dde858f06b3787d6b0332437ec09a281ebd

See more details on using hashes here.

Supported by

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