A minimalistic python wrapper for way2sms, Send up-to 100 free SMS in India daily.
BSD-3-CLAUSE License
.. --restructuredtext--
A minimalistic python wrapper for sending free sms via website way2sms <http://www.way2sms.com>
_.
.. image:: https://img.shields.io/badge/Made%20with-Python-1f425f.svg :target: https://www.python.org/
.. image:: https://img.shields.io/pypi/v/smspy.svg :target: https://pypi.python.org/pypi/smspy
.. image:: https://app.fossa.io/api/projects/git%2Bgithub.com%2Fguptarohit%2Fsmspy.svg?type=shield :target: https://app.fossa.io/projects/git%2Bgithub.com%2Fguptarohit%2Fsmspy?ref=badge_shield :alt: FOSSA Status
.. image:: https://travis-ci.org/guptarohit/smspy.svg?branch=master :target: https://travis-ci.org/guptarohit/smspy
.. image:: https://img.shields.io/pypi/l/smspy.svg :target: https://github.com/guptarohit/smspy/blob/master/LICENSE
.. image:: https://img.shields.io/pypi/pyversions/smspy.svg :target: https://pypi.python.org/pypi/smspy
::
$ pip install -U git+git://github.com/guptarohit/smspy.git
Send SMS ^^^^^^^^
.. code:: python
from smspy import Way2sms
w2s = Way2sms()
w2s.login(USERNAME, PASSWORD)
w2s.send(MOBILE_NUMBER, MESSAGE)
w2s.logout()
Schedule SMS ^^^^^^^^^^^^
.. code:: python
from smspy import Way2sms
w2s = Way2sms()
w2s.login(USERNAME, PASSWORD)
w2s.schedule(MOBILE_NUMBER, MESSAGE, DATE, TIME)
# DATE should be in format DD/MM/YYYY and TIME in 24h HH:mm
w2s.logout()
Check History of sent messages ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.. code:: python
from smspy import Way2sms
w2s = Way2sms()
w2s.login(USERNAME, PASSWORD)
headers, data = w2s.history(DATE)
# DATE should be in format DD/MM/YYYY
print(headers, data)
w2s.logout()
Check Scheduled messages ^^^^^^^^^^^^^^^^^^^^^^^^
.. code:: python
from smspy import Way2sms
w2s = Way2sms()
w2s.login(USERNAME, PASSWORD)
headers, data = w2s.scheduled_messages(DATE)
# DATE should be in format DD/MM/YYYY
print(headers, data)
w2s.logout()
Check Quota left ^^^^^^^^^^^^^^^^
.. code:: python
from smspy import Way2sms
w2s = Way2sms()
w2s.login(USERNAME, PASSWORD)
msgs_remaining=w2s.quota_left()
print(msgs_remaining)
w2s.logout()
Feel free to make a pull request! :octocat:
.. image:: https://app.fossa.io/api/projects/git%2Bgithub.com%2Fguptarohit%2Fsmspy.svg?type=large :target: https://app.fossa.io/projects/git%2Bgithub.com%2Fguptarohit%2Fsmspy?ref=badge_large :alt: FOSSA Status