Introducing Bit.dev Webhooks

栏目: IT技术 · 发布时间: 4年前

内容简介:Using Webhooks you can make sure important events in the lifecycle of components, like version updates, can trigger actions anywhere. With the right Webhooks in place, you can trigger processes like builds, deployments and anything else. The only limit is

Connect your toolchain and get notified on component events- to trigger anything!

Apr 7 ·6min read

Introducing Bit.dev Webhooks

Bit.dev now provides Webhooks, giving you the freedom to connect your component platform to anything else in your workflow and toolchain.

Using Webhooks you can make sure important events in the lifecycle of components, like version updates, can trigger actions anywhere. With the right Webhooks in place, you can trigger processes like builds, deployments and anything else. The only limit is your imagination.

We’ll introduce Bit.dev Webhooks, learn how to use them, and show a quick real-world example of how to connect Bit.dev to Asana so that every new component version gets reviewed by a designer- automatically.

A short intro to Webhooks

Webhooks are a common way for one app to notify of an event, in real-time, to another app. Webhooks are often referred to as “reverse APIs” because the app consuming the data does not do so by sending an HTTP request to another API — instead, it makes an API available for the app sending the data (usually, a POST HTTP request sending data in a JSON format).

Webhooks in Bit.dev

Bit.dev is the platform for components. It’s where all your components are hosted, managed and updated by different team members who use them.

Introducing Bit.dev Webhooks
Example: exploring shared components on bit.dev

Bit.dev “knows” about every meaningful event in the lifecycles of your components: publishing, consuming, updating, deprecating and so on.

As Bit.dev lives side-by-side with other tools in your workflow, Webhooks help you create event-driven communication between different tools/services.

For example- when there’s an important event like a new component version available on Bit.dev, you might want to notify different dev services and processes like automated builds, tests, and deployments.

When the new component version introduces visual UI changes, you might also want to notify designers that they need to review it.

So, to communicate that, both to machines and humans, you need Webhooks.

Note that Bit.dev already offers two out-of-the-box ways to notify on changes to shared components: Automated PRs to Github repositories and automated Slack notifications . Webhooks are now added to provide more freedom to developers, which can not integrate Bit.dev to more tools and trigger event-driven actions.

Setting up a Bit.dev Webhook

Just like tango, it takes two for Webhooks — a transmitter and a receiver. Here, we’ll only discuss setting up the part that sends data, Bit’s Webhooks.

Introducing Bit.dev Webhooks

  1. You should have a Bit.dev organization (an organization is an entity that groups all component collections)
  2. You should have at least one collection (collections are essentially scopes of components, used to organize components, set permissions, etc.). This collection has to be owned by your organization and not by your user.
  3. Enter your organization and click on “Integrations” (on the top right corner).
  4. Install the Webhooks integration.
  5. Configure your Webhooks preferences.

The snapshot below shows four configuration fields:

  • Actions: Select on which events you’d like to be notified.
  • Collection : Select the location or scope of components, to be notified of.
  • Webhook URL: Insert your API endpoint (the receiver of data).
  • Secret Token: Insert a value that would serve as a way to authenticate the source of requests made to your API.

以上所述就是小编给大家介绍的《Introducing Bit.dev Webhooks》,希望对大家有所帮助,如果大家有任何疑问请给我留言,小编会及时回复大家的。在此也非常感谢大家对 码农网 的支持!

查看所有标签

猜你喜欢:

本站部分资源来源于网络,本站转载出于传递更多信息之目的,版权归原作者或者来源机构所有,如转载稿涉及版权问题,请联系我们

计算几何

计算几何

邓俊辉 / 清华大学出版社 / 2009-6 / 49.00元

《计算几何:算法与应用(第3版)》的前4章对几何算法进行了讨论,包括几何求交、三角剖分、线性规划等,其中涉及的随机算法也是《计算几何:算法与应用(第3版)》的一个鲜明特点。第5章至第10章介绍了多种几何结构,包括几何查找、kd树、区域树、梯形图、Voronoi图、排列、Delaunay三角剖分、区间树、优先查找树以及线段树等。第11章至第16章结合实际问题,继续讨论了若干几何算法及其数据结构,包括......一起来看看 《计算几何》 这本书的介绍吧!

图片转BASE64编码
图片转BASE64编码

在线图片转Base64编码工具

UNIX 时间戳转换
UNIX 时间戳转换

UNIX 时间戳转换

RGB HSV 转换
RGB HSV 转换

RGB HSV 互转工具