Модуль для работы с Donation Alerts API
Project description
Инструменты 🛠
Установка 💾
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
Присоединяйся к нам
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.