like from the office
- an IFTTT webhook to send a notification to your phone
- clone, cd, npm i
- use
wrangler secret put
to set theIFTTT_URL
and theSECRET
wrangler publish
if you have SECRET
set (you should), you must authenticate. pass the header
Authorization: Secret YOUR_SECRET
. if using a CF service binding, you can
also set skipAuth
to true
in the cf
object on the request to skip auth.
send a POST to https://yourworker.example/ with the following body:
{
"from": "required - a string describing the sender",
"message": "required - the WUPHF message",
"subject": "optional - the subject for mediums like email"
}
the service will respond like:
{ "successes": [true, true] }
which shows whether each WUPHF succeeded. if none failed, the status is 200. otherwise, it's 500.