import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
ntfy: {
type: "app",
app: "ntfy",
}
},
async run({steps, $}) {
const data = `Backup successful 😀`
return await axios($, {
method: "post",
url: `${this.ntfy.$auth.server}/test`,
headers: {
"Content-Type": "text/plain"
},
data,
})
},
})
Send a notification using Ntfy. See the documentation
ntfy uses API keys for authentication. When you connect your ntfy account, Pipedream securely stores the keys so you can easily authenticate to ntfy APIs in both code and no-code steps.