Skip to main content

A simple wrapper for the Trakteer API

Project description

TrakteerApiWrapper

Downloads

Python wrapper untuk Trakteer Public API.
Mudah digunakan untuk mengambil informasi seperti saldo saat ini, riwayat dukungan, riwayat transaksi, dan total jumlah donasi dari email tertentu.

🔗 API Endpoint

Base URL: https://api.trakteer.id/v1/public


🔧 Install

pip install TrakteerApiWrapper

Usage

from TrakteerApiWrapper import TrakteerApi

trakteer = TrakteerApi("enter_your_api_key_here")

# Get current balance
balance = trakteer.get_current_balance()
print("Balance:", balance)

# Get support history
support_history = trakteer.get_support_history(limit=2, page=1, include=["is_guest", "reply_message", "net_amount", "payment_method", "order_id", "supporter_email", "updated_at_diff_label"])
print("Support History:", support_history)

# Get transaction history
transactions = trakteer.get_transaction_history(limit=2, page=1, include=["is_guest", "reply_message", "net_amount", "updated_at_diff_label"])
print("Transactions:", transactions)

# Get quantity given
quantity = trakteer.get_quantity_given("supporter@example.com")
print("Quantity Given:", quantity)

# please refer to https://trakteer.id/manage/api-trakteer

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

trakteerapiwrapper-0.3.tar.gz (4.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

trakteerapiwrapper-0.3-py3-none-any.whl (4.5 kB view details)

Uploaded Python 3

File details

Details for the file trakteerapiwrapper-0.3.tar.gz.

File metadata

  • Download URL: trakteerapiwrapper-0.3.tar.gz
  • Upload date:
  • Size: 4.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.5

File hashes

Hashes for trakteerapiwrapper-0.3.tar.gz
Algorithm Hash digest
SHA256 27c1b99a410f1c210f3ea15af71e0aa7561eac5ffa7aa2e5b88670cc2c756956
MD5 76a468b2a2ee5b650b9fb4b5dece3bf4
BLAKE2b-256 951df6d7c03b21196317f11b0c381ce2d81b2f664483b358119db39534d34625

See more details on using hashes here.

File details

Details for the file trakteerapiwrapper-0.3-py3-none-any.whl.

File metadata

File hashes

Hashes for trakteerapiwrapper-0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 777a6ead215a47db470d88037fb47c26a2155a06b0e8c3a9eaca4a1bfb504a8b
MD5 cfb2c8e1a3191c90476b95e4fe3aa0a3
BLAKE2b-256 7452d5af8b0b0d5a2cf353f257d3a17cf60eb39ac79883e7d4008d1f961e3c3d

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