mirror of
https://github.com/bohd4nx/FragmentAPI.git
synced 2026-07-25 14:24:31 +00:00
1.1 KiB
1.1 KiB
Client Overview
FragmentClient is the main API surface.
You can call methods directly on the client or use grouped services.
Grouped service wrappers:
client.purchasesclient.giveawaysclient.adsclient.anonymous_numbersclient.marketplaceclient.tonapi
Main async methods on FragmentClient:
purchase_stars(...)purchase_premium(...)giveaway_stars(...)giveaway_premium(...)topup_ton(...)recharge_ads(...)get_wallet()get_login_code(...)toggle_login_codes(...)terminate_sessions(...)search_usernames(...)search_numbers(...)search_gifts(...)call(...)
All methods are async and should be used inside async with FragmentClient(...) as client:.
Flow map
- Stars: Purchase, Giveaway
- Premium: Purchase, Giveaway
- Ads: Ads operations
- Utility operations: Anonymous Numbers, Marketplace, Raw API Calls
If you are new to the library, start with Stars Purchase or Wallet read (get_wallet) first.