Published unlisted
Edited
Feb 22, 2021
Insert cell
Insert cell
Insert cell
email = createTrigger({
name: "test",
authorized_public_keys: ["+tgccllEPVCqjIQ9TnyRUF9rIBhA1+8lWi3lYMowE78="],
checkPayload: (payload) => payload.subject === "Hi", // Ensure nobody goes wild on my email account.
sample: {
to: "foo@example.com",
subject: "My test trigger"
}
})
Insert cell
Insert cell
Insert cell
html`<button onclick=${() => email({
to: to,
subject: "Hi"
})}> send`

Insert cell
Insert cell

Purpose-built for displays of data

Observable is your go-to platform for exploring data and creating expressive data visualizations. Use reactive JavaScript notebooks for prototyping and a collaborative canvas for visual data exploration and dashboard creation.
Learn more