Skip to main content

SMS framework: PSWin provider

Project description

Build Status Pythons

SMSframework PSWinCom Provider

PSWin Provider for smsframework.

Installation

Install from pypi:

$ pip install smsframework_pswin

To receive SMS messages, you need to ensure that Flask microframework is also installed:

$ pip install smsframework_pswin[receiver]

Initialization

from smsframework import Gateway
from smsframework_pswin import PswinProvider

gateway = Gateway()
gateway.add_provider('pswin', PswinProvider,
    user='dignio',
    password='123',
    hostname='foo.pswin.com',  # Defaults to 'simple.pswin.com'
    https=True
)

Config

Source: /smsframework_pswin/provider.py

  • user: str: Account username
  • password: str: Account password
  • hostname: str: Provider hostname
  • https: bool: Use HTTPS for outgoing messages? Default: False

Receivers

Source: /smsframework_pswin/receiver.py

Message Receiver: /im

Login to https://accountweb.pswin.com/ using your account details and edit the section "Mobile Originated (MO) messages forwarding configuration"

Protocol: HTTP Value: <protocol>://<server-name>/<provider-name>/im

Status Receiver: /status

Login to https://accountweb.pswin.com/ using your account details and edit the section "Delivery Reports (DR) forwarding configuration"

Protocol: HTTP Value: <protocol>://<server-name>/<provider-name>/status

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for smsframework-pswin, version 0.3.4
Filename, size File type Python version Upload date Hashes
Filename, size smsframework_pswin-0.3.4-py2.py3-none-any.whl (8.3 kB) File type Wheel Python version py2.py3 Upload date Hashes View
Filename, size smsframework-pswin-0.3.4.tar.gz (7.0 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page