Artwork

Wes Bos and Scott Tolinski - Full Stack JavaScript Web Developers에서 제공하는 콘텐츠입니다. 에피소드, 그래픽, 팟캐스트 설명을 포함한 모든 팟캐스트 콘텐츠는 Wes Bos and Scott Tolinski - Full Stack JavaScript Web Developers 또는 해당 팟캐스트 플랫폼 파트너가 직접 업로드하고 제공합니다. 누군가가 귀하의 허락 없이 귀하의 저작물을 사용하고 있다고 생각되는 경우 여기에 설명된 절차를 따르실 수 있습니다 https://ko.player.fm/legal.
Player FM -팟 캐스트 앱
Player FM 앱으로 오프라인으로 전환하세요!

Hasty Treat - Webhooks

21:35
 
공유
 

Manage episode 302689115 series 1469447
Wes Bos and Scott Tolinski - Full Stack JavaScript Web Developers에서 제공하는 콘텐츠입니다. 에피소드, 그래픽, 팟캐스트 설명을 포함한 모든 팟캐스트 콘텐츠는 Wes Bos and Scott Tolinski - Full Stack JavaScript Web Developers 또는 해당 팟캐스트 플랫폼 파트너가 직접 업로드하고 제공합니다. 누군가가 귀하의 허락 없이 귀하의 저작물을 사용하고 있다고 생각되는 경우 여기에 설명된 절차를 따르실 수 있습니다 https://ko.player.fm/legal.

In this Hasty Treat, Scott and Wes talk about webhooks — one of those concepts that seems a lot scarier than it actually is.

Linode - Sponsor

Whether you’re working on a personal project or managing enterprise infrastructure, you deserve simple, affordable, and accessible cloud computing solutions that allow you to take your project to the next level. Simplify your cloud infrastructure with Linode’s Linux virtual machines and develop, deploy, and scale your modern applications faster and easier. Get started on Linode today with a $100 in free credit for listeners of Syntax. You can find all the details at linode.com/syntax. Linode has 11 global data centers and provides 24/7/365 human support with no tiers or hand-offs regardless of your plan size. In addition to shared and dedicated compute instances, you can use your $100 in credit on S3-compatible object storage, Managed Kubernetes, and more. Visit linode.com/syntax and click on the “Create Free Account” button to get started.

LogRocket - Sponsor

LogRocket lets you replay what users do on your site, helping you reproduce bugs and fix issues faster. It’s an exception tracker, a session re-player and a performance monitor. Get 14 days free at logrocket.com/syntax.

Show Notes

03:42 - What are webhooks?

  • User-defined HTTP callbacks
  • When something happens, ping this URL with this data
  • Examples:
    • When something sells, ping this URL
    • When someone reverses a charge, lock their account
    • Trigger a build of the website when the content changes
    • Then someone buys a shirt, generate a shipping label and save it to the DB

07:57 - Sending End

  • Can be a great way to hook two services together

09:13 - Receiving End

  • Often you will be the one that accepts the webhook ping
  • In this case, you set up an endpoint

11:00 - Payloads

  • Almost all will send a JSON body that you parse out
  • The method send is variable

11:51 - Auth

  • On the receiving end of a webhook, you often get a token which you can then ping the service with. It will tell you if that request was legit or not.
  • On the sending end, you can often set up headers with auth - same with the method
  • Can be a replacement for a serverless function

13:18 - Testing webhooks

Tweet us your tasty treats!
  continue reading

750 에피소드

Artwork

Hasty Treat - Webhooks

Syntax - Tasty Web Development Treats

4,052 subscribers

published

icon공유
 
Manage episode 302689115 series 1469447
Wes Bos and Scott Tolinski - Full Stack JavaScript Web Developers에서 제공하는 콘텐츠입니다. 에피소드, 그래픽, 팟캐스트 설명을 포함한 모든 팟캐스트 콘텐츠는 Wes Bos and Scott Tolinski - Full Stack JavaScript Web Developers 또는 해당 팟캐스트 플랫폼 파트너가 직접 업로드하고 제공합니다. 누군가가 귀하의 허락 없이 귀하의 저작물을 사용하고 있다고 생각되는 경우 여기에 설명된 절차를 따르실 수 있습니다 https://ko.player.fm/legal.

In this Hasty Treat, Scott and Wes talk about webhooks — one of those concepts that seems a lot scarier than it actually is.

Linode - Sponsor

Whether you’re working on a personal project or managing enterprise infrastructure, you deserve simple, affordable, and accessible cloud computing solutions that allow you to take your project to the next level. Simplify your cloud infrastructure with Linode’s Linux virtual machines and develop, deploy, and scale your modern applications faster and easier. Get started on Linode today with a $100 in free credit for listeners of Syntax. You can find all the details at linode.com/syntax. Linode has 11 global data centers and provides 24/7/365 human support with no tiers or hand-offs regardless of your plan size. In addition to shared and dedicated compute instances, you can use your $100 in credit on S3-compatible object storage, Managed Kubernetes, and more. Visit linode.com/syntax and click on the “Create Free Account” button to get started.

LogRocket - Sponsor

LogRocket lets you replay what users do on your site, helping you reproduce bugs and fix issues faster. It’s an exception tracker, a session re-player and a performance monitor. Get 14 days free at logrocket.com/syntax.

Show Notes

03:42 - What are webhooks?

  • User-defined HTTP callbacks
  • When something happens, ping this URL with this data
  • Examples:
    • When something sells, ping this URL
    • When someone reverses a charge, lock their account
    • Trigger a build of the website when the content changes
    • Then someone buys a shirt, generate a shipping label and save it to the DB

07:57 - Sending End

  • Can be a great way to hook two services together

09:13 - Receiving End

  • Often you will be the one that accepts the webhook ping
  • In this case, you set up an endpoint

11:00 - Payloads

  • Almost all will send a JSON body that you parse out
  • The method send is variable

11:51 - Auth

  • On the receiving end of a webhook, you often get a token which you can then ping the service with. It will tell you if that request was legit or not.
  • On the sending end, you can often set up headers with auth - same with the method
  • Can be a replacement for a serverless function

13:18 - Testing webhooks

Tweet us your tasty treats!
  continue reading

750 에피소드

모든 에피소드

×
 
Loading …

플레이어 FM에 오신것을 환영합니다!

플레이어 FM은 웹에서 고품질 팟캐스트를 검색하여 지금 바로 즐길 수 있도록 합니다. 최고의 팟캐스트 앱이며 Android, iPhone 및 웹에서도 작동합니다. 장치 간 구독 동기화를 위해 가입하세요.

 

빠른 참조 가이드