Line
| Schemes | line:// |
| Cargo feature | service-line |
| Service | https://line.me/ |
| Body formats | text (first is the default) |
| Attachments | no |
| Title length | no title (merged into the body) |
| Body length | 5,000 characters |
| Body lines | unlimited |
| Request throttle | none |
| Vendor URLs accepted | no |
URL formats
{schema}://{token}/{targets}
{schema} is one of line://.
URL tokens
| Token | Meaning | Type | Required | Default | Notes |
|---|---|---|---|---|---|
{target_user} | Target User | string | no | ||
{targets} | Targets | list | yes | any of target_user; separated by / | |
{token} | Access Token | string | yes | secret |
Query parameters
| Parameter | Meaning | Type | Default | Notes |
|---|---|---|---|---|
image | Include Image | bool | yes | |
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):
line://token=/target
line://token/target2/target1/target2
line://token/target?image=no
line://a/very/long/token=/target?image=no
line://token/a?to=b,%23c
line://?token=token&to=target1
Rejected URLs:
line://
line://%20/
Send one from the command line:
mercurio -t 'Backup' -b 'Finished in 42s' 'line://token=/target'
Notes
LINE (line://): push messages to users or groups through the LINE Messaging API.