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")
    

🧑‍💻 Author

Ali – GitHub

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.4.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.4-py3-none-any.whl (2.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: payamresan-0.1.4.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.4.tar.gz
Algorithm Hash digest
SHA256 64a80c1cbecfe689e9988438e39c62cd405df07a16ebdbae05b21ec9705bcc4f
MD5 727868d5b9ede0349021fe4738f41483
BLAKE2b-256 210fa18e87c432abfe9b1affb645c8a1984770b172154bf9548e8713e33c536c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: payamresan-0.1.4-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.4-py3-none-any.whl
Algorithm Hash digest
SHA256 c6c499b8933b914ee824f453e87167238be9437f9adba6d57a40b09626fea633
MD5 0afc64936e32a0f9edfb2ab4fa60a88c
BLAKE2b-256 2890eb136557b2231cc4fe97fbb711b31078a3c5a6b3e6ebe8d6e1948d0aed40

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