Skip to main content

A python module for sending free sms via website way2sms.

Project description

A minimalistic python wrapper for sending free sms via website way2sms.

https://img.shields.io/badge/Made%20with-Python-1f425f.svg

Installation

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

Usage

Send SMS

from smspy import Way2sms

w2s = Way2sms()

w2s.login(USERNAME, PASSWORD)

w2s.send(MOBILE_NO, MSG)

w2s.logout()

Schedule SMS

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

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

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

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:

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

smspy-0.5.0.tar.gz (5.4 kB view hashes)

Uploaded Source

Built Distribution

smspy-0.5.0-py2.py3-none-any.whl (5.6 kB view hashes)

Uploaded Python 2 Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page