Skip to main content

SMS sending module for payam-resan.com

Project description

PayamResan

SMS sending module for payam-resan.com Downloads


📦 Installation

pip install payamresan

🚀 Quick Usage

from payamresan import Payamak

payam = Payamak(api_key="YOUR_API_KEY", sender="YOUR_SENDER_NUMBER")

payam.send_sms("Hello!", "+989123456789")

📝 Note: The sender must be an integer (e.g., 50004075014432). You can also omit it if you want the default sender to be used by the API.


✅ Checking for Success or Error

You can store the result of send_sms() in a variable and check its status:

result = payam.send_sms("Hello!", "+989123456789")

if result["Success"] == True:
    print("✅ Message sent successfully!")
else:
    print("❌ Error:", result["ErrorCode"])

💡 Notes

  • Make sure your API key and sender number are active on payam-resan.com.

  • You can send to multiple recipients:

    payam.send_sms("Hello everyone!", "+989111111111", "+989122222222", "+989133333333")
    

☕️ Support

if you enjoy, buy me a coffee

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

payamresan-0.1.5.tar.gz (2.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

payamresan-0.1.5-py3-none-any.whl (2.5 kB view details)

Uploaded Python 3

File details

Details for the file payamresan-0.1.5.tar.gz.

File metadata

  • Download URL: payamresan-0.1.5.tar.gz
  • Upload date:
  • Size: 2.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.9

File hashes

Hashes for payamresan-0.1.5.tar.gz
Algorithm Hash digest
SHA256 fecaf425b299c20f4c020848f617c23cb043fa4e80f02a115e336027020d5935
MD5 7f2828dc6e3edbeb4bc90d53a9a434c7
BLAKE2b-256 ed17a41f5fc96ee7babb47a2956db272b73ea183266d369c44b11170c019e186

See more details on using hashes here.

File details

Details for the file payamresan-0.1.5-py3-none-any.whl.

File metadata

  • Download URL: payamresan-0.1.5-py3-none-any.whl
  • Upload date:
  • Size: 2.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.9

File hashes

Hashes for payamresan-0.1.5-py3-none-any.whl
Algorithm Hash digest
SHA256 ad188fc3cf2354b26f943f5603eaa16a1564041f03fef5457d7413aff4d9e72a
MD5 8b2d30be32fdb1d57d8537eaea4ca772
BLAKE2b-256 575a0205a4d14b01f421d6425e6d2e57e09c23972789e15130230c33d6f12e82

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page