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

推荐订阅源

博客园 - 三生石上(FineUI控件)
WordPress大学
WordPress大学
S
SegmentFault 最新的问题
小众软件
小众软件
T
Tailwind CSS Blog
博客园 - 聂微东
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
人人都是产品经理
人人都是产品经理
V
Visual Studio Blog
罗磊的独立博客
有赞技术团队
有赞技术团队
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
Jina AI
Jina AI
量子位
云风的 BLOG
云风的 BLOG
Recent Announcements
Recent Announcements
Hugging Face - Blog
Hugging Face - Blog
P
Proofpoint News Feed
N
Netflix TechBlog - Medium
GbyAI
GbyAI
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
腾讯CDC
美团技术团队

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!