import requests
payload = {
"enabled": True,
"threshold_credits": 100,
"recharge_amount": 500
}
response = requests.post(
"https://api.videodb.io/billing/auto_recharge",
json=payload,
headers={"x-access-token": "your_api_key"}
)
result = response.json()
print(f"Auto-Recharge Updated: {result.get('success')}")
print(f"New Settings: {result.get('settings')}")