SMSframework Vianett Provider
Vianett Provider for smsframework.
You need an account with "SMS Server" service set up. You'll need the following configuration: username, password.
Installation
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]
Initialization
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
)
Config
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'.
Sending Parameters
Provider-specific sending params: None
Additional Information
OutgoingMessage.meta
None.
IncomingMessage.meta
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.
MessageStatus.meta
... Tons of stupid, unpredictable fields
Receivers
Source: /smsframework_vianett/receiver.py
Message Receiver: /im
Go to Configuration > Connections, click 'Change'. Put the message receiver URL into "HTTP url" field.
Message Receiver URL: <provider-name>/im
Status Receiver: /status
Go to Configuration > Connections, click 'Change'. Put the message receiver URL into "HTTP Status url" field.
Status Receiver URL: <provider-name>/status
Metadata
Release files for smsframework-vianett 0.0.2.post0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| smsframework-vianett-0.0.2.post0.tar.gz | 8.1 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| smsframework_vianett-0.0.2.post0-py2.py3-none-any.whl | Python 3, Python 2 | none | any | Details |
Total release size: 17.2 kB
Release files / smsframework-vianett-0.0.2.post0.tar.gz
| Download URL | smsframework-vianett-0.0.2.post0.tar.gz |
|---|---|
| Size | 8.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
5cd42ae151caf88b7933ce188f85ff8b21d76d87f36b745f4d2be0c2ea83774a
|
|
BLAKE2b-256 checksum How to use checksums |
94698f8c55de11029d96d31dc705904dc549b5e3b0c30322de86068aa34614a4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.11.0 pkginfo/1.4.2 requests/2.18.4 setuptools/40.2.0 requests-toolbelt/0.8.0 tqdm/4.23.4 CPython/3.6.7
|
Release files / smsframework_vianett-0.0.2.post0-py2.py3-none-any.whl
| Download URL | smsframework_vianett-0.0.2.post0-py2.py3-none-any.whl |
|---|---|
| Size | 9.0 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
0c993ebc1d011cff721893263d7f05deaa3519612c4250d0ad7ca54733e660a5
|
|
BLAKE2b-256 checksum How to use checksums |
31e4293095c2c8a87da309008b25eb04ada28702a4d4cbb10c57f0051807ce08
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.11.0 pkginfo/1.4.2 requests/2.18.4 setuptools/40.2.0 requests-toolbelt/0.8.0 tqdm/4.23.4 CPython/3.6.7
|