FamAPI Verify API — Python SDK
Project description
FamAPI Verify — Python SDK
pip install famapi-verify
Usage
Payment API (api_key from dashboard)
from famapi import FamAPI
client = FamAPI(api_key="your_api_key_here")
payment = client.create_payment(amount=100)
print(payment["purpose"], payment["qr_image_url"])
result = client.verify_payment(purpose=payment["purpose"])
print(result["status"], result["message"])
client.complete_payment(purpose=payment["purpose"])
payments = client.get_payments(status="pending", limit=10)
time_info = client.get_payment_time(purpose=payment["purpose"])
csv = client.export_payments()
Session API (access_token from browser dev tools)
Get your Supabase access_token from your browser's Application → Local Storage → sb-kqmmbjtlaixncqlldgqo-auth-token → copy the access_token field.
client = FamAPI(session_token="your_supabase_access_token")
data = client.get_dashboard_data()
usage = client.get_dashboard_usage()
logs = client.get_webhook_logs()
client.create_subscription(plan="starter")
client.verify_subscription(purpose="SUB_...")
status = client.get_gmail_status()
client.disconnect_gmail()
new_key = client.reset_api_key()
result = client.update_settings(webhook_url="https://example.com/hook")
Admin endpoints (session_token + admin role)
admin = FamAPI(session_token="your_admin_access_token")
stats = admin.get_admin_stats()
users = admin.get_admin_users(search="user@", page=1, limit=20)
user = admin.get_admin_user(user_id="uuid")
admin.update_admin_user(user_id="uuid", plan="pro")
admin.complete_admin_payment(payment_id="uuid")
ips = admin.get_ip_analytics(period="24h")
Webhook endpoint
client = FamAPI(webhook_secret="your_webhook_secret")
result = client.handle_webhook_payment_verified(purpose="FAM_...")
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
famapi_verify-0.1.0.tar.gz
(3.9 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file famapi_verify-0.1.0.tar.gz.
File metadata
- Download URL: famapi_verify-0.1.0.tar.gz
- Upload date:
- Size: 3.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
11c2893e51ca1193692ff70544ceb30e3c5ec87559b26a35380b50161708a7af
|
|
| MD5 |
95e183658cb0b7930fcfffd782c5b358
|
|
| BLAKE2b-256 |
4a101e4218e34ce260a74f9da91f1653574a9dedca8cf3d6d7c129181d43441f
|
File details
Details for the file famapi_verify-0.1.0-py3-none-any.whl.
File metadata
- Download URL: famapi_verify-0.1.0-py3-none-any.whl
- Upload date:
- Size: 4.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3c6c014cac316a5160ee4637e14c9327ce60b5f9c9e46ea922734b101f6e28ef
|
|
| MD5 |
1902b9f9ce4a16443091922c9a8fa00c
|
|
| BLAKE2b-256 |
938bd5ca4f8cb3bc2686cd1e2f3b98a63ba45c27ae0d5c5ac792d18cd647763b
|