Sandbox 101: Implementing Webhooks

preview_player
Показать описание
You can use Webhooks to get notified about API events at the time they occur. These are very useful to integrate to prevent the need to build polling into your application. Here, we walk through an example Serverless Application Model (or SAM) app that creates resources in AWS for handling Webhook events. Since this is a SAM application, it uses AWS Lambda, AWS HTTP API, and AWS DynamoDB.

A key thing to call out is that this tutorial is only covering how to handle accepting and verifying webhooks with Square. This means that it will only handle creating an endpoint to accept events at, verifying that it is a valid payload sent by Square, and then storing that information to be processed later (or by another system). All webhook events are just stored in a DynamoDB table in the end, so you could process those asynchronously.

Check out the example application linked below, and find more information about Square’s webhook events by taking a look at our documentation.

Рекомендации по теме