mirror of
https://github.com/bohd4nx/FragmentAPI.git
synced 2026-07-25 06:14:29 +00:00
33 lines
744 B
Markdown
33 lines
744 B
Markdown
# Raw API Calls
|
|
|
|
Use `client.call()` when you need a Fragment API method that does not yet have a dedicated wrapper.
|
|
|
|
```python
|
|
result = await client.call(
|
|
"searchPremiumGiftRecipient",
|
|
{"query": "@username", "months": 3},
|
|
page_url="https://fragment.com/premium/gift",
|
|
)
|
|
```
|
|
|
|
Signature:
|
|
|
|
```python
|
|
await client.call(
|
|
method: str,
|
|
data: dict[str, Any] | None = None,
|
|
*,
|
|
page_url: str = "https://fragment.com",
|
|
) -> dict[str, Any]
|
|
```
|
|
|
|
Use this carefully:
|
|
|
|
- request/response shape is Fragment-defined,
|
|
- undocumented methods can change without notice,
|
|
- you are responsible for validating returned fields.
|
|
|
|
## Recommended approach
|
|
|
|
Use dedicated wrappers first, and fallback to `call()` only for missing API surface.
|