reddit / devvit

Reddit for Developers
https://developers.reddit.com
BSD 3-Clause "New" or "Revised" License
59 stars 13 forks source link

Reverse Webhook Support #61

Open pl00h opened 3 months ago

pl00h commented 3 months ago

It could be useful to have a way to set up a reverse webhook. I was thinking something like Devvit.registerWebhookListener(name: string, handler: (content: string) => void). This would register the given function as the handler for a webhook with the given name, and also add an entry to the app settings page containing a unique webhook URL that can be copied to be used on the other end: {name}: https://webhook.reddit.com/{unique id}.

zachlandes commented 3 weeks ago

This would unlock some huge new capabilities for our app and many others!