Skip to content

Instantly share code, notes, and snippets.

<?php
define("NOTIFO_SERVICE_USERNAME", "dicebot");
define("NOTIFO_APISECRET", "xxxxxxxxxxxxxxxxxxxxxxx");
include("Notifo_API.php");
include("Notifo_Webhook.php");
/* verify that the POST data is actually from notifo */
if (Notifo_Webhook::verify_signature($_POST["notifo_signature"], $_POST, NOTIFO_APISECRET)) {
<html>
<body>
<form name="themform" action="./notifo_form_submit.php" method="POST">
Send a message to Stammy!
<p/>
<textarea rows=10 cols=30 name="message">
Happy Birthday!
</textarea>