Skip to content
/ wuphf Public

send messages lots of places (like from the office!)

License

Notifications You must be signed in to change notification settings

viomck/wuphf

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

WUPHF!

like from the office

requirements

  • an IFTTT webhook to send a notification to your phone

setup

  1. clone, cd, npm i
  2. use wrangler secret put to set the IFTTT_URL and the SECRET
  3. wrangler publish

api

authentication

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.

sending notifications

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.

About

send messages lots of places (like from the office!)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published