SMS gateway
Portax short-message-service gateway API
DESCRIPTION
Portax supports O2, TM-CZ and GTSMCConnect HTTP/REST gateway protocol.
METHODS
POST
Send message. Expects UTF-8 JSON encoded data in the POST body.
FIELDS
Required attributes.
- toNumber
- Recipient number in internation format
- text
- Message body
EXAMPLE
data.json
{ "toNumber": "420123456789", "text": "hello world", }
curl -s --cert-type P12 --cert $CERT:$PASS -X POST \ -H "Content-Type: application/json" \ --data @data.json $URL/rest/sms
GET
Get message status
EXAMPLE
curl -s --cert-type P12 --cert $CERT:$PASS $URL/rest/sms/::id
Last modified
3 years ago
Last modified on Sep 30, 2021, 3:07:09 PM
Note:
See TracWiki
for help on using the wiki.