46elks
| Schemes | 46elks://, elks:// |
| Cargo feature | service-fortysixelks |
| Service | https://46elks.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 | yes |
URL formats
{schema}://{user}:{password}@{from_phone}
{schema}://{user}:{password}@{from_phone}/{targets}
{schema} is one of 46elks://, elks://.
URL tokens
| Token | Meaning | Type | Required | Default | Notes |
|---|---|---|---|---|---|
{from_phone} | From Phone No | string | yes | ||
{password} | API Password | string | yes | secret | |
{target_phone} | Target Phone | string | no | ||
{targets} | Targets | list | no | any of target_phone; separated by / | |
{user} | API Username | string | yes |
Query parameters
| Parameter | Meaning | Type | Default | Notes |
|---|---|---|---|---|
from | From Phone No | string | sets {from_phone} | |
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):
elks://user:pass@+15551234123/
46elks://user:pass@+15551234556
46elks://user:pass@Acme/15551234512/%2B15551234513
46elks://user:pass@+15551234567/+46701234534?from=Acme
https://user1:pass@api.46elks.com/a1/sms/?to=15551234511
https://user1:pass@api.46elks.com/a1/sms?to=+15551234511&from=Acme
46elks://user:pass@Acme?to=15551234511,+15551234512
Rejected URLs:
46elks://
46elks://user@/
46elks://:pass@/
Send one from the command line:
mercurio -t 'Backup' -b 'Finished in 42s' 'elks://user:pass@+15551234123/'
Notes
46elks (46elks://, elks://): SMS through the 46elks API.