Security News
tea.xyz Spam Plagues npm and RubyGems Package Registries
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
smssluzbacz-api
Readme
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.
There is known bug in authentication in post API making it unable to authenticate properly. sms.sluzba.cz service is working on resolving this issue.
Install via pip or copy this module into your project or into your PYTHON_PATH.
::
$ pip install smssluzbacz-api
Example 1
Using lite API
::
from smssluzbacz_api.lite import SmsGateApi
api = SmsGateApi('login', 'password', timeout=2, use_ssl=True) api.send('123456789', 'my SMS message', use_post=True)
Example 2
Using post API
::
from smssluzbacz_api.post import SmsGateApi
api = SmsGateApi('login', 'password', timeout=2, use_ssl=True) api.send('123456789', 'my SMS message')
Tested on environment
Running tests
To run the unit tests, first install tests_require
dependencies from setup.py, then run command: ::
$ python test.py $ python setup.py test
Running integration tests for lite API
To run integration tests for lite API run command: ::
$ python integration_test_lite.py <tel_number>
To list all command line options run command: ::
$ python integration_test_lite.py --help
Running integration tests for post API
To run integration tests for post API run command: ::
$ python integration_test_post.py <tel_number>
To list all command line options run command: ::
$ python integration_test_post.py --help
| Jozef Sevcik, CodeScale s.r.o. | char0n (Vladimir Gorej, CodeScale s.r.o.) | email: info@codescale.net | web: http://www.codescale.net/
FAQs
api library for sending SMS (shor text message) via sms.sluzba.cz service
We found that smssluzbacz-api demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.
Security News
UnitedHealth Group disclosed that the ransomware attack on Change Healthcare compromised protected health information for millions in the U.S., with estimated costs to the company expected to reach $1 billion.