Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (pypi.python.org).
Help us improve Python packaging - Donate today!

SMS framework: Vianett provider

Project Description

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

Release History

Release History

This version
History Node

0.0.1-1

History Node

0.0.1

Download Files

Download Files

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

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
smsframework_vianett-0.0.1_1-py2-none-any.whl (10.0 kB) Copy SHA256 Checksum SHA256 2.7 Wheel Aug 14, 2014
smsframework-vianett-0.0.1-1.tar.gz (7.4 kB) Copy SHA256 Checksum SHA256 Source Aug 14, 2014

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting