Skip to content

Command-line SMS client for ASPSMS based on the RESTful JSON API

Notifications You must be signed in to change notification settings

roger-dodger/python-aspsms

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

Python ASPSMS

Command-line SMS client for ASPSMS. Message text can be given as argument or read from standard input.

Dependencies

The SMS clients uses requests for the API calls. This module has to be installed before the script can be used.

pip install requests

Configuration

Before you can start you have to update the values in aspsms.conf:
Example:

{
    "USERKEY": "ABCDEFGHIJKL",
    "PASSWORD": "myPassword",
    "ORIGINATOR": "+41791234567"
}

Usage

Send message

Send message to recpipient +41791234567 (uses originator from configuration):

./aspsms.py -m 'message' -r +41791234567

Send message to recpipient +41791234567 with originator '+41797654321':

./aspsms.py -m 'message' -r +41791234567 -o '+41797654321'

Pipe message from STDIN:

echo "test" | ./aspsms.py -r +41791234567

Check Credit Balance

./aspsms.py credits

Help

./aspsms.py -h

ASPSMS REST API

About

Command-line SMS client for ASPSMS based on the RESTful JSON API

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages