惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
雷峰网
雷峰网
Hugging Face - Blog
Hugging Face - Blog
IT之家
IT之家
H
Help Net Security
腾讯CDC
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
The GitHub Blog
The GitHub Blog
V
V2EX
M
MIT News - Artificial intelligence
Vercel News
Vercel News
WordPress大学
WordPress大学
博客园 - 三生石上(FineUI控件)
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
阮一峰的网络日志
阮一峰的网络日志
B
Blog RSS Feed
D
Docker
V
Visual Studio Blog
博客园 - 叶小钗
美团技术团队
S
SegmentFault 最新的问题
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com

Buttondown's blog

Email could have been X.400 times better The physicists who convinced Fermilab to send Brazil's emails Slack webhooks Better in-app previews Analytics 3.0 Subscriber ID variables Comments! Send latest premium action Automation filtering Free API subscribers Surveys in automations Reply to replies Labels for RSS feeds How Jeremy Singer-Vine curates curious datasets for readers 2023 (and what's next) Email vs web content Sort by engagement Better gift subscriptions How Andy Dehnart built a career reviewing television New email template Email-based automations Opt-in reply tracking Automatic alt text More social network integrations Sort by metadata Overlarge image warnings Automation tag actions Pause emails mid-flight Search tags and automations Gift via automations
Programmatic webhooks
Justin Duke · 2023-08-21 · via Buttondown's blog

We've added a new endpoint to the API that allows you to register webhooks (or list them, or update them, or delete them.) You can check it out over in the API documentation.

While I imagine programmatic webhooks are overkill to many people, there are many use cases this enables for platforms managing multiple newsletters on top of Buttondown:

  • If you're running a suite of ten newsletters, each with different primary authors, you can dynamically register webhooks to notify those authors when a new subscriber signs up.
  • If you're programmatically registering newsletters and syncing them with your own data store over time, you can further automate this process by registering webhooks alongside newly created newsletters instead of having to manually register them.

Here's an example invocation, just for fun:

requests.post("https://buttondown.com/v1/webhooks", {
    "url": "https://example.com/webhook",
    "event_type": "subscriber.created"
})

That's all! Happy programming!