Société Française du Radiotéléphone
| Schemes | sfr:// |
| Cargo feature | service-sfr |
| Service | https://www.sfr.fr/ |
| 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}://{user}:{password}@{space_id}/{targets}
{schema} is one of sfr://.
URL tokens
| Token | Meaning | Type | Required | Default | Notes |
|---|---|---|---|---|---|
{password} | Service Password | string | yes | secret | |
{space_id} | Space ID | string | yes | secret | |
{target} | Recipient Phone Number | string | no | must match ^\+?[0-9\s)(+-]+$ | |
{targets} | Targets | list | yes | any of target; separated by / | |
{user} | Service ID | string | yes |
Query parameters
| Parameter | Meaning | Type | Default | Notes |
|---|---|---|---|---|
lang | Language | string | fr_FR | |
media | Media Type | string | SMSUnicode | one of SMS, SMSLong, SMSUnicode, SMSUnicodeLong |
sender | Sender Name | string | also from | |
timeout | Timeout | int | 2880 | |
to | Targets | list | sets {targets} | |
voice | TTS Voice | string | claire08s | one of claire08s, laura8k |
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):
sfr://service_id:service_password@000/0000000000
sfr://service_id:service_password@000/0000000000?media=SMS
sfr://service_id:service_password@000/0000000000?from=MyApp&timeout=30
sfr://service_id:service_password@000/0000000000?voice=laura8k&lang=en_US
sfr://srv:pwd@11111111/0000000000?sender=&from=B&timeout=%2012%20
sfr://srv:pwd@11111111/0000000000?sender=A&from=B&timeout=abc&media=SMSUnicodeLong
Rejected URLs:
sfr://
sfr://:@/
sfr://:service_password
sfr://testing:serv@ice_password
Send one from the command line:
mercurio -t 'Backup' -b 'Finished in 42s' 'sfr://service_id:service_password@000/0000000000'
Notes
SFR (sfr://): SMS through SFR.