mirror of
https://github.com/bohd4nx/FragmentAPI.git
synced 2026-07-26 14:51:40 +00:00
44 lines
1.2 KiB
Markdown
44 lines
1.2 KiB
Markdown
# Client Overview
|
|
|
|
`FragmentClient` is the main API surface.
|
|
|
|
You can call methods directly on the client or use grouped services.
|
|
|
|
Grouped service wrappers:
|
|
|
|
- `client.purchases`
|
|
- `client.giveaways`
|
|
- `client.ads`
|
|
- `client.anonymous_numbers`
|
|
- `client.marketplace`
|
|
- `client.tonapi`
|
|
|
|
Main async methods on `FragmentClient`:
|
|
|
|
- `purchase_stars(...)`
|
|
- `purchase_premium(...)`
|
|
- `giveaway_stars(...)`
|
|
- `giveaway_premium(...)`
|
|
- `topup_gram(...)`
|
|
- `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](stars/purchase.md), [Giveaway](stars/giveaway.md)
|
|
- Premium: [Purchase](premium/purchase.md), [Giveaway](premium/giveaway.md)
|
|
- Marketplace: [Overview](marketplace/overview.md), Ads: [Overview](ads/overview.md)
|
|
- Numbers: [Anonymous Numbers](anonymous-numbers/overview.md)
|
|
- Utility operations: [Raw API Calls](raw-call.md)
|
|
|
|
**If you are new to the library, start with Stars Purchase or Wallet read (`get_wallet`) first.**
|