WxPusher
| Schemes | wxpusher:// |
| Cargo feature | service-wxpusher |
| Service | https://wxpusher.zjiecode.com/ |
| Body formats | text (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}/{targets}
{schema} is one of wxpusher://.
URL tokens
| Token | Meaning | Type | Required | Default | Notes |
|---|---|---|---|---|---|
{target_topic} | Target Topic | int | no | ||
{target_user} | Target User ID | string | no | must match ^UID_[^\s]+$ | |
{targets} | Targets | list | yes | any of target_topic, target_user; separated by / | |
{token} | App Token | string | yes | secret; must match ^AT_[^\s]+$ |
Query parameters
| Parameter | Meaning | Type | Default | Notes |
|---|---|---|---|---|
to | Targets | list | sets {targets} | |
token | App 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):
wxpusher://AT_appid/123/
wxpusher://AT_appid//UID_123/UID_abc/123456789/abc
wxpusher://AT_appid/UID_345/?format=markdown
wxpusher://123?token=AT_abc1234
wxpusher://?token=AT_abc1234&to=UID_abc
wxpusher://AT_appid/?to=22222222222,33333333333,555
Rejected URLs:
wxpusher://
wxpusher://:@/
wxpusher://invalid
Send one from the command line:
mercurio -t 'Backup' -b 'Finished in 42s' 'wxpusher://AT_appid/123/'
Notes
WxPusher (wxpusher://): messages through WxPusher.