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.3.tar.gz (2.3 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.3-py3-none-any.whl (2.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: payamresan-0.1.3.tar.gz
  • Upload date:
  • Size: 2.3 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.3.tar.gz
Algorithm Hash digest
SHA256 be4ae91f1e6151822aa189ed35c2315aae6c707d3fd8839e1e0e455b99091979
MD5 0f1d190d998c841a0b044015063a2d8b
BLAKE2b-256 9944b4054132fcd91539fe4bbdfacce90d52d004b350a3f36ad34e8cbd76535f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: payamresan-0.1.3-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.3-py3-none-any.whl
Algorithm Hash digest
SHA256 c1b7898463b7e40618af3690a16ef446c59b07ab02999ee6d0abd10df4a24441
MD5 5e6aea1577b43d74f8fe42be051bd949
BLAKE2b-256 bfea8cab251686ef201ac15b684548ea1fb040ca9b396bb42127ca1214cf2257

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