Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Nextcloud

Schemesncloud://, nclouds://
Cargo featureservice-nextcloud
Servicehttps://nextcloud.com/
Body formatstext (first is the default)
Attachmentsno
Title length255 characters
Body length4,000 characters
Body linesunlimited
Request throttlenone
Vendor URLs acceptedno

URL formats

{schema}://{host}/{targets}
{schema}://{host}:{port}/{targets}
{schema}://{user}:{password}@{host}/{targets}
{schema}://{user}:{password}@{host}:{port}/{targets}

{schema} is one of ncloud://, nclouds://.

URL tokens

TokenMeaningTypeRequiredDefaultNotes
{host}Hostnamestringyes
{password}Passwordstringnosecret
{port}Portint, 1 to 65535no
{target_group}Target Groupstringnoprefix #
{target_user}Target Userstringnoprefix @
{targets}Targetslistyesany of target_group, target_user; separated by /
{user}Usernamestringno

Query parameters

ParameterMeaningTypeDefaultNotes
toTargetslistsets {targets}
url_prefixURL Prefixstring
versionVersionint, min 121

Prefixed parameters:

  • +name=value: HTTP Header

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):

ncloud://localhost/admin
ncloud://user@localhost/admin
ncloud://localhost/admin/@admin
nclouds://user:pass@localhost/admin
ncloud://user:pass@localhost/?to=*
ncloud://user@localhost?to=user1&version=20
ncloud://user@localhost?to=user1&version=20&url_prefix=/abcd
ncloud://localhost:8080/admin?+HeaderKey=HeaderValue&+Accept=text/plain

Rejected URLs:

ncloud://
ncloud://user@localhost?to=user1&version=invalid
ncloud://user@localhost?to=user1&version=0
ncloud://user@localhost?to=user1&version=-23

Send one from the command line:

mercurio -t 'Backup' -b 'Finished in 42s' 'ncloud://localhost/admin'

Notes

Nextcloud (ncloud://, nclouds://): notifications to Nextcloud users.

Targets are users, #groups or all/everyone/*; groups are expanded through the OCS provisioning API before sending.

Group lookups are cached for a day in the persistent store.

Differences with Apprise

  • URL order is kept (users first, then group members); Apprise iterates unordered sets.