Metadata-Version: 2.0
Name: smspy
Version: 0.5.0
Summary: A python module for sending free sms via website way2sms.
Home-page: https://github.com/guptarohit/smspy
Author: Rohit Gupta
Author-email: UNKNOWN
License: BSD
Description-Content-Type: UNKNOWN
Platform: UNKNOWN
Classifier: Development Status :: 4 - Beta
Classifier: Topic :: Utilities
Classifier: Intended Audience :: Developers
Classifier: Natural Language :: English
Classifier: License :: OSI Approved :: BSD License
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 2
Classifier: Programming Language :: Python :: 2.7
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.4
Classifier: Programming Language :: Python :: 3.5
Classifier: Programming Language :: Python :: 3.6
Requires-Dist: beautifulsoup4
Requires-Dist: requests


.. -*-restructuredtext-*-

SMSpy
=====
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/


Installation
------------

::

    $ pip install -U git+git://github.com/guptarohit/smspy.git

Usage
-----


Send SMS
^^^^^^^^

.. code:: python

    from smspy import Way2sms

    w2s = Way2sms()

    w2s.login(USERNAME, PASSWORD)

    w2s.send(MOBILE_NO, MSG)

    w2s.logout()


Schedule SMS
^^^^^^^^^^^^

.. code:: python

    from smspy import Way2sms

    w2s = Way2sms()

    w2s.login(USERNAME, PASSWORD)

    w2s.schedule(MOBILE_NO, MSG, 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()


Contributing
------------

Feel free to make a pull request! :octocat:


