(Unofficial) ntfy.sh API

Started by TesoMayn, Nov 21, 2022, 01:01 PM

Previous topic - Next topic

TesoMayn

I know someone else posted this, I even responded to that thread

His didn't work, mine does.

To install run
pastebin get uKktWaim ntfy
And then to use

ntfy = require("ntfy")

ntfy.send("Test_topic", "This is a test message.", "This is a test title.")

Format:
ntfy.send(topic, message, [title | os.computerLabel()]
If the title is empty, it will default to the computer's label, which is nice for notifications across multiple computers


I most likely won't respond much to this, it's pretty straight forward.


Original: https://forums.computercraft.cc/index.php?topic=462.0