Skip to content
@jennifer/gotify

gotify cheatsheet

Every export of @jennifer/gotify. Background is in the introduction.

jennifer
import "@jennifer/gotify/" as gotify;
import "http.j" as http;

Every push POSTs to <url>/message with X-Gotify-Key: <token> and returns the http.Response unchecked: 200 on success, 401 for a wrong token. Transport failures throw from http.

Types

Config

FieldMeaning
url as stringserver URL without a trailing slash
token as stringapplication token

Extras

FieldMeaning
markdown as boolrender the body as markdown
clickUrl as stringURL opened on tap; "" for none

Pushing

FunctionReturnsBody
gotify.push(cfg, title, message, priority)http.Responseform
gotify.pushMarkdown(cfg, title, message, priority)http.ResponseJSON, markdown extra
gotify.pushWith(cfg, title, message, priority, clickUrl)http.ResponseJSON, click extra
gotify.pushExtras(cfg, title, message, priority, extras)http.ResponseJSON, the extras set in extras