Updated apiDoc.md and README.md

This commit is contained in:
MarcUs7i 2025-07-15 12:45:28 +02:00
parent d30235181b
commit ecc9e4c275
2 changed files with 14 additions and 0 deletions

View file

@ -51,6 +51,7 @@ print(f"EU Data: {eu_data_info['remaining']}/{eu_data_info['total']} GiB")
# Access account information
print(f"User: {client.user_name}")
print(f"Phone Number: {client.phone_number}")
print(f"Balance: €{client.balance if client.balance is not None else 'N/A'}")
print(f"Package valid until: {client.tariff_package_valid_to}")

View file

@ -256,6 +256,18 @@ Get user's name.
print(f"User name: {client.user_name}")
```
### phone_number → Optional[str]
Get user's phone number.
**Returns:**
- `str`: User's phone number or None if not available
**Example:**
```python
print(f"Phone number: {client.phone_number}")
```
### user_type → Optional[str]
Get user's type (e.g., 'CUSTOMER').
@ -504,6 +516,7 @@ Key caching parameters:
- Tariffs: 60 seconds TTL
The cache is implemented using the `ttl_cache` decorator in helpers.py.
The user data cache is cleared automatically when a credit top-up occurs.
## Error Handling