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 details)

Uploaded Source

Built Distribution

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

Uploaded Python 2 Python 3

File details

Details for the file smspy-0.5.0.tar.gz.

File metadata

  • Download URL: smspy-0.5.0.tar.gz
  • Upload date:
  • Size: 5.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for smspy-0.5.0.tar.gz
Algorithm Hash digest
SHA256 88bcc648dd010e2488be216e2a274a314baf95acf4d1f2217301ae0c3c633542
MD5 2073230ca1884e8f917eaa1b7e72edd6
BLAKE2b-256 0bce797e51e27e1c13d2ab182b564aa477bd40807685a0d2109ced843d0ddfd1

See more details on using hashes here.

File details

Details for the file smspy-0.5.0-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for smspy-0.5.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 fcfc1893e3044bfb9c15c5f29d2af90dd935c5a26f1fa459f929398201968c94
MD5 b666de2d1530e050c70e08c82878a790
BLAKE2b-256 ce8e268ae202799f723ee4bd4b8d82534ac3c195915ac4df3f5d86d9da4e9366

See more details on using hashes here.

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