Skip to main content

📦 Asanak Web Call Client (Python)

یک کلاینت پایتونی برای مدیریت تماس ها از طریق API Asanak

📌 ویژگی‌ها

  • آپلود فایل صوتی به لیست فایل ها
  • ایجاد تماس از طریق فایل صوتی (تک یا چند مقصده)
  • ایجاد تماس برای کد های احراز هویت (OTP)
  • دریافت گزارش وضعیت تماس ها
  • دریافت اعتبار باقی مانده

📄 منابع و مستندات

🚀 نصب پکیج

از PyPI:

pip install asanak-web-call-client

از GitHub:

pip install git+https://github.com/Asanak-Team/python-web-call-client.git

📚 استفاده از کلاینت

from web_call_client import AsanakWebCallClient

client = AsanakWebCallClient("username", "password")

1- افزودن فایل صوتی جدید

try:
    data = client.upload_new_voice("/path/file/voice.mp3")
    print(data)
except Exception as e:
    print(e)

2- تماس از طریق فایل صوتی

try:
    data = client.call_by_voice("VOICE_ID", "0912000000")
    print(data)
except Exception as e:
    print(e)

3- تماس OTP

try:
    data = client.call_by_otp(1234, "0912000000")
    print(data)
except Exception as e:
    print(e)

4- استعلام وضعیت تماس ها

try:
    data = client.call_status(['CALL_ID_1', 'CALL_ID_2'])
    print(data)
except Exception as e:
    print(e)

5- استعلام اعتبار باقی مانده

try:
    data = client.credit()
    print(data)
except Exception as e:
    print(e)

📝 پارامتر‌های ورودی

  • username: نام کاربری از API Asanak
  • password: رمز عبور از API Asanak
  • base_url: آدرس سرور API Asanak (پیش‌فرض: https://callapi.asanak.com)

📝 پارامتر‌های خروجی

{
    "success": boolean,
    "error": null|str,
}

Metadata

Release files for asanak-web-call-client 0.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for asanak-web-call-client 0.0.0
File Size Uploaded Provenance
asanak_web_call_client-0.0.0.tar.gz 4.4 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for asanak-web-call-client 0.0.0
File Interpreter ABI Platform
asanak_web_call_client-0.0.0-py3-none-any.whl Python 3 none any Details

Total release size: 9.3 kB

Release files / asanak_web_call_client-0.0.0.tar.gz

Download URL asanak_web_call_client-0.0.0.tar.gz
Size 4.4 kB
Tags Source
SHA-256 checksum
How to use checksums
a0a8816b523d373a4c6a0c60490d0b2b95f36302f2ac519d7dc9886c0d728d6e
BLAKE2b-256 checksum
How to use checksums
120220eeb63f80048d5e224d53e6cace28f0c92584b954824e31616aa89ca639
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.10.6

Release files / asanak_web_call_client-0.0.0-py3-none-any.whl

Download URL asanak_web_call_client-0.0.0-py3-none-any.whl
Size 4.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
7483413757bbf50412e702f1564b1ba7541e55240cfd6f7a4b4bfb1c2c1700be
BLAKE2b-256 checksum
How to use checksums
b688b698ceb8667153f70c69faf7879bc59854b6a41873407276cadfc0d1ff24
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.10.6

Security for asanak-web-call-client 0.0.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.0.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page