Skip to content

Latest commit

 

History

History
49 lines (42 loc) · 1.02 KB

README.md

File metadata and controls

49 lines (42 loc) · 1.02 KB

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