Skip to content

sms4dev/sms4-pip

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SMS4 Python Client

This is the Python client library for SMS4.

This library provides both blocking and non blocking functions for sending text messages via sms4 API.

Installation

pip install sms4

Usage

from sms4 import send, nonblocking_send

# result is a json server response. see docs for details
result = send('+123456798', 'The server is down!')
print(result)

# multiple numbers are supported and you can pass token via
# 3rd argument to send function
result = send(['+123456798', '+123456799'], 'The server is down!', 'YOUR_TOKEN')
print(result)

# Will be send in another thread, no result returned
nonblocking_send('+123456798', 'The server is down!')

Releases

No releases published

Packages

No packages published

Languages