manage message in www.sms.ir
Project description
smsir
smsir is a Python library for using SMS web services (www.sms.ir)
All web service documentation is implemented
اس ام اس ای ار یک کتابخانه پایتون برای استفاده از خدمات وب سروریس اس ام اس دات ای ار است
تمامی مستند های موجود در وب سرویس پیاده سازی شده است
Installation
Use the package manager pip to install smsir.
pip install smsir
Usage
دریافت توکن
GET Token
from smsir.token import get_token
# returns 'TOKEN'
get_token(UserApiKey='', SecretKey='')
دریافت اعتبار
GET credit
from smsir.token import get_credit
# returns 'credit'
get_credit(token='')
ارسال پیام به شماره
SendByMobileNumber
from smsir.sms import send_by_mobile_number
# returns 'sms response'
send_by_mobile_number(Messages='text', MobileNumbers='09XX', LineNumber='3000XXX', Token='GET Token')
ارسال پیام کد تایید
Send VerificationCode
from smsir.sms import VerificationCode
# returns 'sms response'
VerificationCode(Code='code', MobileNumber='09XX', Token='GET Token')
ارسال پیام فوق سریع
send UltraFast
from smsir.sms import UltraFastSend
# returns 'sms response'
parameter_array = [
{"Parameter": "Parameters1", "ParameterValue": "Value1"},
{"Parameter": "Parameters2", "ParameterValue": "Value2"}
]
UltraFastSend(ParameterArray=parameter_array, TemplateId='', Token='GET Token')
License
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
smsir-1.0.5.tar.gz
(4.4 kB
view details)
Built Distribution
smsir-1.0.5-py3-none-any.whl
(5.5 kB
view details)
File details
Details for the file smsir-1.0.5.tar.gz
.
File metadata
- Download URL: smsir-1.0.5.tar.gz
- Upload date:
- Size: 4.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.6.0 importlib_metadata/4.8.2 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.7.8
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 694d79606a76140b663fcfd2f89b8722826df3bc385ae9c8cfd73b0c33edbc17 |
|
MD5 | 4f7573a39af8ca0dd20863af13dcb845 |
|
BLAKE2b-256 | 75c97a45513548182cc90a6a4d75a9ed53d5bd3e50bbb1474527b2cdc139c4a6 |
File details
Details for the file smsir-1.0.5-py3-none-any.whl
.
File metadata
- Download URL: smsir-1.0.5-py3-none-any.whl
- Upload date:
- Size: 5.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.6.0 importlib_metadata/4.8.2 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.7.8
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d4170f3bd9e8ab36880217931422fe03ddae5360c7db0a16939977a87e92202b |
|
MD5 | 34ace45aeeb4958e799db6a97e8d1d38 |
|
BLAKE2b-256 | 2c15163baa3ea91d93d3299e5b049735d65891de7342642c8bfc5950dac5a37d |