DingTalk
| Schemes | dingtalk:// |
| Cargo feature | service-dingtalk |
| Service | https://www.dingtalk.com/ |
| Body formats | text, markdown (first is the default) |
| Attachments | no |
| Title length | 250 characters |
| Body length | 32,768 characters |
| Body lines | unlimited |
| Request throttle | none |
| Vendor URLs accepted | no |
URL formats
{schema}://{token}/
{schema}://{token}/{targets}/
{schema}://{secret}@{token}/
{schema}://{secret}@{token}/{targets}/
{schema} is one of dingtalk://.
URL tokens
| Token | Meaning | Type | Required | Default | Notes |
|---|---|---|---|---|---|
{secret} | Secret | string | no | secret; must match ^[a-z0-9]+$ | |
{target_phone_no} | Target Phone No | string | no | ||
{targets} | Targets | list | no | any of target_phone_no; separated by / | |
{token} | Token | string | yes | secret; must match ^[a-z0-9]+$ |
Query parameters
| Parameter | Meaning | Type | Default | Notes |
|---|---|---|---|---|
secret | Secret | string | sets {secret} | |
to | Targets | list | sets {targets} | |
token | Token | string | sets {token} |
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):
dingtalk://12345678
dingtalk://aaaaaaaa/11111111111111
dingtalk://aaaaaaaa/111/invalid/+1 (555) 123-45678
dingtalk://aaaaaaaa?format=markdown
dingtalk://secret@aaaaaaaa/?to=11111111111111
dingtalk://aaaaaaaa/?to=11111111111111,22222222222
dingtalk://?token=bbbbbbbb&to=11111111111111&secret=abc123
Rejected URLs:
dingtalk://aaaaaaaa/?to=11111111111111&secret=_
dingtalk://a_b@aaaaaaaa
dingtalk://
dingtalk://a_bd_/
Send one from the command line:
mercurio -t 'Backup' -b 'Finished in 42s' 'dingtalk://12345678'
Notes
DingTalk (dingtalk://): messages to a DingTalk group robot webhook.