pswinpy

A package for sending SMS messages using the PSWinCom SMS Gateway
Download

pswinpy Ranking & Summary

Advertisement

  • Rating:
  • License:
  • MIT/X Consortium Lic...
  • Publisher Name:
  • Torbjorn Maro
  • Publisher web site:
  • http://pswin.com

pswinpy Tags


pswinpy Description

A package for sending SMS messages using the PSWinCom SMS Gateway A Python interface to the (http://pswin.com/english/products/gateway).Installation:The pswinpy package is distributed through PyPI as both egg, Windows and source. THIS IS NOT YET TRUE!!Basic UsageTo use this package, you will need sign up for a Gateway account with PSWinCom. Demo account are available.This piece of code demonstrates how to send a simple SMS message: from pswinpy import API api = API("myUsername", "myPassword") api.sendSms(4712345678, "Strange women lying in ponds distributing swords is no basis for a system of government!")PropertiesReceiver and message text are the two mandatory properties when sending a message. You may specify additional properties by using named arguments.For instance this is how you would specify a sender: api.sendSms(4712345678, "It's just a flesh wound.", sender="BlackKnight")Properties currently supported are:- sender- TTL - time to live in minutes- tariff - the amount (in local currency as cents/"ører") to charge the receiver- serviceCode - service code for sending GAS messages. Requires that tariff is set. See (http://wiki.pswin.com/CPA-Goods-and-Services.ashx) for details.- deliveryTime - a datetime object specifying when to send the messageSpecifying HostThe package is set to use a particular PSWinCom SMS Gateway by default. The host can be changed globaly by setting the host class property on HttpSender: HttpSender.host = "some.other.host.com"ModesFor testing purposes the API provides a couple of modes you can set globally to control how the library works. Mode.test = True Requirements: · Python


pswinpy Related Software