Python

One call that wraps the HTTP API's bearer door, with nothing else in the dependency tree. The token is your source's ylk_…, from its page.

Install

Python 3.9 and up, the standard library only.

$ pip install youlmk

Send

from youlmk import notify
notify(os.environ["YOULMK_TOKEN"], "backup finished", body="4.2 GB in 3 min 10 s", priority="low")

YouLMK(token).notify(title, ...) for more than one send. Keyword arguments are the payload's fields in snake_case (url_label, fields, group, image, actions) plus idempotency_key. The answer is a Result with id, receipt, grouped and held. An error is a YouLMKError with status, code, field and retry_after.

Which to use

A shell has curl and the command line. A server has this. An app you ship sends through its own server, or through a source whose Reach you are happy to let strangers reach, since a token inside an app is public.

Next

Command line: Send from any shell with npx youlmk, or with curl and nothing installed. · Node · Payload reference