Skip to main content

A library for using SMS web services in IRAN

Project description

Welcome to SMSIRAN python module

"A library for using SMS web services in IRAN" Unfortunately, Iranian web services do not have the necessary code to use the texting tools for Python. The module that you see here is a set of codes so that you can easily perform texting operations with all text messaging web services. We will be continuously adding more web services to the module. Please join us in completing the module if you have Python programming skills and have access to one of the web SMS services.

Web Services

List of supported SMS web services: (Other web services will be added over time) لیست وب سرویس های پیامکی که پشتیبانی می شوند: (به مرور زمان دیگر وب سرویس ها نیز اضافه می شوند)

SMS Web Service Module Name Class Name
SMS.ir sms_ir.py SmsIR
Ghasedak.io ghasedak.py Ghasedak
Kavenegar.com Not Yet Not Yet
etc. Not Yet Not Yet

ماژول پایتون ارسال پیامک برای وب سرویس های ایرانی

متاسفانه وب سرویس های ایرانی فاقد کدهای لازم برای استفاده ابزارهای ارسال پیامک برای پایتون می باشند. ماژولی که اینجا شاهد آن هستید مجموعه کدهایی است تا بتوانید به آسانی عملیات ارسال پیامک را با تمامی وب سرویس های ارسال پیامک انجام دهید. ما به صورت ممتد وب سرویس های بیشتری را به ماژول اضافه خواهیم کرد. لطفا اگر مهارتی در برنامه نویسی به زبان پایتون دارید و دسترسی به یکی از وب سرویس های ارسال پیامک دارید ما را در کامل کردن ماژول همراهی کنید.

How to use

Each web service in the form of a Python class will be able to embed in your applications.

نحوه استفاده

هر وب سرویس به صورت یک کلاس پایتون قابلیت درون سپاری در برنامه های شما خواهد داشت.

Example for SMS.IR

Sms.ir sms webservice python package.

>>> from smsiran import SmsIR
# Create object with "UserApiKey","SecretKey" inputs.
# it will create token for you and print it:
>>> smsir = SmsIR("14769***********9c4","it66*********445")
# Send OTP with otp fucntion and "mobile number" and "otp code" as input:
>>> smsir.otp("0915***8139","951234")
"""
VerificationCodeId : [a float number]
IsSuccessful : True
Message : your verification code is sent
Verification Code is: 951234
"""

Example for Ghasedak.io

Ghasedak sms webservice python package.

# Import ghasedak module 
>>> import ghasedak
# Create Ghasedak object
>>> sms = ghasedak.Ghasedak("Your APIKEY")
# Use methods inside the class like send method
>>> sms.send({'message':'hello, world!', 'receptor' : '09xxxxxxxxx', 'linenumber': 'xxxx', 'senddate': '', 'checkid': ''})
>>> sms.bulk1({'message':'hello, world!', 'receptor' : '09xxxxxxxxx,09xxxxxxxxx,09xxxxxxxxx', 'linenumber': 'xxxx', 'senddate': '', 'checkid': ''})

license

Released under the MIT License.

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

smsiran-0.0.5.tar.gz (6.5 kB view details)

Uploaded Source

File details

Details for the file smsiran-0.0.5.tar.gz.

File metadata

  • Download URL: smsiran-0.0.5.tar.gz
  • Upload date:
  • Size: 6.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/3.10.0 pkginfo/1.7.0 requests/2.22.0 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.8.5

File hashes

Hashes for smsiran-0.0.5.tar.gz
Algorithm Hash digest
SHA256 75d746e3ddc8d739b989134aa2e2640765fe7d3ae05dc317d150e5c2bebe4189
MD5 3b62684aa29bb262e3aeb881ac17179c
BLAKE2b-256 cab990bb839099749c8d61db421209284389c0e489b057019b917230e7b919e7

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