httpSMS
| Schemes | httpsms:// |
| Cargo feature | service-httpsms |
| Service | https://httpsms.com |
| Body formats | text (first is the default) |
| Attachments | no |
| Title length | no title (merged into the body) |
| Body length | 160 characters |
| Body lines | unlimited |
| Request throttle | none |
| Vendor URLs accepted | no |
URL formats
{schema}://{apikey}@{from_phone}
{schema}://{apikey}@{from_phone}/{targets}
{schema} is one of httpsms://.
URL tokens
| Token | Meaning | Type | Required | Default | Notes |
|---|---|---|---|---|---|
{apikey} | API Key | string | yes | secret | |
{from_phone} | From Phone No | string | yes | must match ^\+?[0-9\s)(+-]+$ | |
{target_phone} | Target Phone No | string | no | prefix +; must match ^[0-9\s)(+-]+$ | |
{targets} | Targets | list | yes | any of target_phone; separated by / |
Query parameters
| Parameter | Meaning | Type | Default | Notes |
|---|---|---|---|---|
from | From Phone No | string | must match ^\+?[0-9\s)(+-]+$ | |
key | API Key | string | sets {apikey} | |
to | Targets | list | sets {targets} |
The common URL parameters (format, overflow, verify, redirect, cto, rto, retry, wait, store, tag, tz, user, password, port, optional, emojis) apply as well.
Examples
Accepted URLs (tokens are fake):
httpsms://apikey@15551232000
httpsms://apikey@15551232000/15551232001/15551232002
httpsms://user@15551232000?key=thekey
httpsms://apikey@15551232001?from=15551232000
httpsms://apikey@15551232000?to=15551232003,15551232004
Rejected URLs:
httpsms://
httpsms://15551232000
httpsms://%20@15551232000
httpsms://apikey@555
Send one from the command line:
mercurio -t 'Backup' -b 'Finished in 42s' 'httpsms://apikey@15551232000'
Notes
httpSMS (httpsms://): SMS sent from your Android phone through the httpSMS API.