Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/guptarohit/smspy

A minimalistic python wrapper for way2sms, Send up-to 100 free SMS in India daily. :tada: :sparkles:
https://github.com/guptarohit/smspy

automation free-sms python scraper sms-api utility way2sms

Last synced: 22 days ago
JSON representation

A minimalistic python wrapper for way2sms, Send up-to 100 free SMS in India daily. :tada: :sparkles:

Awesome Lists containing this project

README

        

.. -*-restructuredtext-*-

SMSpy
=====
A minimalistic python wrapper for sending free sms via website `way2sms `_.

.. 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

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_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()

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

Feel free to make a pull request! :octocat:

License
-------

.. 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