smssluzbacz-api

API library for sending SMS (shor text message) via sms.sluzba.cz service
Download

smssluzbacz-api Ranking & Summary

Advertisement

  • Rating:
  • License:
  • BSD License
  • Price:
  • FREE
  • Publisher Name:
  • Vladimir Gorej and Jozef Sevcik
  • Publisher web site:
  • https://github.com/jsk/

smssluzbacz-api Tags


smssluzbacz-api Description

smssluzba-api is API for sending SMS via sms.sluzba.cz HTTP service. It allows you to send SMS (short text messages) from python applications. In order to use this API you have to register to http://sms.sluzba.cz/ service. There is restriction on sms.sluzba.cz that will block your account after several invalid login attempts. Length of one SMS is restricted to 459 characters.NoteThere is known bug in authentication in post API making it unable to authenticate properly. sms.sluzba.cz service is working on resolving this issue.InstallationInstall via pip or copy this module into your project or into your PYTHON_PATH. pip install smssluzbacz-apiExamplesExample 1Using lite APIfrom smssluzbacz_api.lite import SmsGateApiapi = SmsGateApi('login', 'password', timeout=2, use_ssl=True)api.send('123456789', 'my SMS message', use_post=True)Example 2Using post APIfrom smssluzbacz_api.post import SmsGateApiapi = SmsGateApi('login', 'password', timeout=2, use_ssl=True)api.send('123456789', 'my SMS message')TestsTested on environment- Xubuntu Linux 11.10 oneiric 64-bit- python 2.7.2+- python unittestRunning testsTo run the unit tests run command: python test.py python setup.py testRunning integration tests for lite APITo run integration tests for lite API run command: python integration_test_lite.py < login > < password > < tel_number >To list all command line options run command: python integration_test_lite.py --helpRunning integration tests for post APITo run integration tests for post API run command: python integration_test_post.py < login > < password > < tel_number >To list all command line options run command: python integration_test_post.py --helpProduct's homepage


smssluzbacz-api Related Software