markmelnic / bulksmsmd

Python wrapper for Unifun BulkSMSAPI (bulksms.md)

Home Page:https://pypi.org/project/bulksmsmd

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

bulksmsmd - Python wrapper for Unifun BulkSMSAPI (bulksms.md)

PyPI Version PyPI Version License

Condsider the official documentation before using this package or to understand the more advanced options dlrurl, dlrmask, charset and coding.

2021 Official documentation .DOCX

2021 Official documentation .PDF

Installation

Installation is done using the following command:

pip install bulksmsmd

Usage

The username and password are the credentials for the API. The sender is the name of the sender.

client = SMSClient(
    username = 'username',
    password = 'password',
    sender = 'sender',
)

The client object is used to send messages and contains two methods: send_sms_simple & send_sms_nde.

client.send_sms_simple(
    msisdn = '69123456',
    body = 'Test message.',
    prefix = '373',
)

client.send_sms_nde(
    msisdn = '69123456',
    body = 'Test message.',
    prefix = '373',
    dlr_url = 'https://example.com/dlr',
    dlr_mask = '31',
    charset = 'utf8',
    coding = '2',
)

About

Python wrapper for Unifun BulkSMSAPI (bulksms.md)

https://pypi.org/project/bulksmsmd

License:MIT License


Languages

Language:Python 100.0%