← All procedures

notify.pushover.receipt

Read the receipt of a Pushover emergency message: acknowledged, by which device, expired. Read it at most once in 5 s.

CLI
Package
@procedures/notify · README
Path
["notify","pushover","receipt"]
CLI
mark notify pushover receipt --receipt <string>
As data
{"$proc":["notify","pushover","receipt"],"input":{}}

Use it

In TypeScript

import { Client, LocalTransport, PROCEDURE_REGISTRY } from "@procedures/client";
import "@procedures/notify/register"; // registers its procedures

const client = new Client(new LocalTransport({ registry: PROCEDURE_REGISTRY }));
const result = await client.exec(["notify","pushover","receipt"], { receipt: "<receipt>" });
console.log(JSON.stringify(result));

From the command line

$ mark notify pushover receipt --receipt <string>

As data, in a program

{
  "$proc": ["notify", "pushover", "receipt"],
  "input": { "receipt": "<receipt>" }
}

Input

FieldTypeRequiredDefaultDescription
receiptstringyesThe receipt of an emergency message
tokenEnvstringno"PUSHOVER_APP_TOKEN"The name of the environment variable with the API token of the application (default: PUSHOVER_APP_TOKEN)
timeoutMsintegerno20000The time limit, in milliseconds (default: 20000)

Output

FieldTypeRequiredDefaultDescription
okbooleanyes
JSON Schemas
{
  "input": {
    "type": "object",
    "properties": {
      "receipt": {
        "type": "string",
        "pattern": "^[A-Za-z0-9]{30}$",
        "description": "The receipt of an emergency message"
      },
      "tokenEnv": {
        "default": "PUSHOVER_APP_TOKEN",
        "description": "The name of the environment variable with the API token of the application (default: PUSHOVER_APP_TOKEN)",
        "type": "string",
        "pattern": "^PUSHOVER_[A-Z0-9_]+$"
      },
      "timeoutMs": {
        "default": 20000,
        "description": "The time limit, in milliseconds (default: 20000)",
        "type": "integer",
        "exclusiveMinimum": 0,
        "maximum": 120000
      }
    },
    "required": [
      "receipt"
    ]
  },
  "output": {
    "type": "object",
    "properties": {
      "ok": {
        "type": "boolean"
      }
    },
    "required": [
      "ok"
    ],
    "additionalProperties": {}
  }
}