Skip to main content

A simple python client for Sms Alert APIs

Project description

SMS Alert

A simple python client for SMS Alert APIs. To use this package, you must have a valid account on https://www.smsalert.co.in.

  • Free software: ISC license

Features

  • Send sms to any mobile number using SMS Alert username, password, senderid, route.

Requirements

  • username : SMS Alert account username

  • password : SMS Alert account password

  • mobileno : Destination mobile number (Keep number in international format)

  • message : Message Content to send

  • senderid : Receiver will see this as sender's ID

  • route : If your operator supports multiple routes then give one route name

How to use

//import smsAlert.py where you want to send msg

from smsAlert import smsAlertMsg

class smsAlertMsg(unittest.TestCase):

def setUp(self):
username='' # add your SMS Alert username
    password='' # add your SMS Alert password

self.client = smsAlertMsg(username=username,password=password)

def tearDown(self):
    pass

def test_send_sms(self):
    self.client.send_sms('918010551055','Test SMS','CVDEMO','demo') #(mobileno, message, senderid, route)
	
if __name__ == '__main__':
import sys
sys.exit(unittest.main())	

Credits

This package was created with Cozy Vision Pvt. Ltd.

History

0.5.0

  • First release on PyPI.

1.0.0

  • Some minor changes and fixes.

1.0.1

  • Updated Readme
  • Minor changes.

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

smsAlert-1.0.1.tar.gz (12.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

smsAlert-1.0.1-py2.py3-none-any.whl (3.7 kB view details)

Uploaded Python 2Python 3

File details

Details for the file smsAlert-1.0.1.tar.gz.

File metadata

  • Download URL: smsAlert-1.0.1.tar.gz
  • Upload date:
  • Size: 12.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.6.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.9.5

File hashes

Hashes for smsAlert-1.0.1.tar.gz
Algorithm Hash digest
SHA256 57a6b6905aac2babf80f865e2dad11c2dacec3ec8590da42f9df0382b3064878
MD5 a706a370f72be08f01b2725bc47cc7d7
BLAKE2b-256 b3b84f9f6f9b803e623b77d0e9cf693146c826f464d4f905f27fe8269bbb1e99

See more details on using hashes here.

File details

Details for the file smsAlert-1.0.1-py2.py3-none-any.whl.

File metadata

  • Download URL: smsAlert-1.0.1-py2.py3-none-any.whl
  • Upload date:
  • Size: 3.7 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.6.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.9.5

File hashes

Hashes for smsAlert-1.0.1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 f1f9ab68ed300445a0dbacdba724d36c73a6f622bd71a52b9c1e187a027bebb3
MD5 90ac69fdcf17368b2bbbfacf272af78c
BLAKE2b-256 f734a782a678db3d9545640a1d1a114068df8b80017d4da515b87d3b0678c15a

See more details on using hashes here.

Supported by

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