Skip to main content

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 import Token

# returns 'TOKEN'
# get UserApiKey and SecretKey values from your panel
Token(UserApiKey='value', SecretKey='value').get_token()

ارسال پیام به شماره

SendByMobileNumber

from smsir import sms

# returns 'sms response'
sms().send_by_mobile_number(Messages='text', MobileNumbers='09XX', LineNumber='3000XXX', Token='GET Token')

ارسال پیام کد تایید

Send VerificationCode

from smsir import sms

# returns 'sms response'
sms().VerificationCode(Code='code', MobileNumber='09XX', Token='GET Token')

ارسال پیام فوق سریع

send UltraFast

from smsir import sms

# returns 'sms response'
parameter_array = [
    {"Parameter": "Parameters1", "ParameterValue": "Value1"},
    {"Parameter": "Parameters2", "ParameterValue": "Value2"}
]
sms().UltraFastSend(ParameterArray=parameter_array, TemplateId='', Token='GET Token')

License

MIT

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

smsir-1.0.4.tar.gz (4.3 kB view hashes)

Uploaded Source

Built Distribution

smsir-1.0.4-py3-none-any.whl (5.5 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page