Модуль для работы с 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.
Source Distribution
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
Algorithm | Hash digest | |
---|---|---|
SHA256 | 163a507e7cd9429268d0dca2ffa62818fdca7c15ffdb232fcbbca4e815fbeca8 |
|
MD5 | 7b3ced384d8da240ab4af499a4915c93 |
|
BLAKE2b-256 | 06854a1b8de35bdd212dd34580502dde858f06b3787d6b0332437ec09a281ebd |