PSWin Provider for smsframework.
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]
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
)Source: /smsframework_pswin/provider.py
user: str: Account usernamepassword: str: Account passwordhostname: str: Provider hostnamehttps: bool: Use HTTPS for outgoing messages? Default:False
Source: /smsframework_pswin/receiver.py
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
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
