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

✅ 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.2.tar.gz (2.2 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.2-py3-none-any.whl (2.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: payamresan-0.1.2.tar.gz
  • Upload date:
  • Size: 2.2 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.2.tar.gz
Algorithm Hash digest
SHA256 a772e74da9bb4010649ca1c35bec046026390eb2975c86e6b3464ad630a818fb
MD5 1ef6df77a609c0e72d27786dde417f69
BLAKE2b-256 ebf0c3a6936b7f9beb915ddb8ea905ae2205303dbc718dbe85253b33b39e5a5d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: payamresan-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 2.4 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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 95bb1cb10fa3770d550d2daf64edd8c84a4d188cc352326b5aec77c166a602c3
MD5 abaaff46a6756b7d3fa3fc375797127b
BLAKE2b-256 bac4b691ad0acc9f555ca650935dba596bfe877fcd959259871f15765924c563

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