Vianett Provider for smsframework.
You need an account with "SMS Server" service set up. You'll need the following configuration: username, password.
Install from pypi:
$ pip install smsframework_vianett
To receive SMS messages, you need to ensure that Flask microframework is also installed:
$ pip install smsframework_vianett[receiver]
from smsframework import Gateway
from smsframework_vianett import VianettProvider
gateway = Gateway()
gateway.add_provider('vianett', VianettProvider,
user='kolypto',
password='123',
https=False,
use_prefix=True
)
Source: /smsframework_vianett/provider.py
-
user: str
: Account username -
password: str
: Account password -
https: bool
: Use HTTPS for outgoing messages? Default:False
-
use_prefix: bool
: Do you use prefixes for incoming messages?Stupidly, Vianett splits all incoming messages by space, and the first part goes to 'Prefix'. If you do not use prefixes, this can be very annoying! Set
False
: then, the whole message contents goes to 'body'.
Provider-specific sending params: None
None.
prefix: str
: The first word in the message (keyword).retrycount: int
: How many times the message has tried to be delivered.operator: int
: The operator ID.replypathid: int
: Only used for two-way dialogue, default 0.
... Tons of stupid, unpredictable fields
Source: /smsframework_vianett/receiver.py
Go to Configuration > Connections, click 'Change'. Put the message receiver URL into "HTTP url" field.
Message Receiver URL: <provider-name>/im
Go to Configuration > Connections, click 'Change'. Put the message receiver URL into "HTTP Status url" field.
Status Receiver URL: <provider-name>/status