Command-line SMS client for ASPSMS. Message text can be given as argument or read from standard input.
The SMS clients uses requests
for the API calls. This module has to be installed before the script can be used.
pip install requests
Before you can start you have to update the values in aspsms.conf
:
Example:
{
"USERKEY": "ABCDEFGHIJKL",
"PASSWORD": "myPassword",
"ORIGINATOR": "+41791234567"
}
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
./aspsms.py credits
./aspsms.py -h