The trouble with webhooks - at Apidays Live Hong Kong

8ec1383b240b5ba15ffb9743fceb3c0e?s=47 Phil Nash
October 08, 2020

The trouble with webhooks - at Apidays Live Hong Kong

Webhooks are a core part of the way developers interact with the Twilio API but can be the hardest to work with when learning the platform. Discover the many ways the Twilio team has tried to improve the experience, from documentation, tooling and serverless functions, all the way to building and releasing a video game.

--

Links:

TwilioQuest: https://www.twilio.com/quest
Twilio CLI and open source projects: https://github.com/twilio-labs

8ec1383b240b5ba15ffb9743fceb3c0e?s=128

Phil Nash

October 08, 2020
Tweet

Transcript

  1. THE TROUBLE WITH WEBHOOKS @philnash

  2. Phil Nash @philnash https://philna.sh philnash@twilio.com

  3. WHAT IS A WEBHOOK? @philnash

  4. What is a webhook? “User defined HTTP callbacks” POST /webhook

    HTTP/1.1 Host: www.yourwebsite.com @philnash
  5. Who uses webhooks? Twilio, SendGrid, Stripe, GitHub, DropBox, Auth0, Slack...

    @philnash
  6. WHAT'S THE TROUBLE? @philnash

  7. WHAT'S THE DEVELOPER EXPERIENCE? @philnash

  8. How do I test this? Online: RequestBin, PostBin Tunnels: ngrok,

    localtunnel, serveo, tunnelto Deploy and test in production @philnash
  9. WHAT CAN WE DO ABOUT IT? @philnash

  10. DOCUMENTATION SHOULD GO WITHOUT SAYING @philnash

  11. HOST CODE FOR DEVELOPERS @philnash

  12. TWIMLETS @philnash

  13. @philnash

  14. TWIMLBINS @philnash

  15. @philnash

  16. SERVERLESS @philnash

  17. @philnash

  18. STUDIO @philnash

  19. @philnash

  20. INTERACTIVE EXPERIENCES @philnash

  21. TWILIOQUEST @philnash

  22. @philnash

  23. @philnash

  24. @philnash

  25. DEMO @philnash

  26. TOOLING @philnash

  27. SERVERLESS TOOLKIT @philnash

  28. Serverless Toolkit twilio-run create-twilio-function function-templates @philnash

  29. TWILIO CLI @philnash

  30. Twilio CLI $ npm install -g twilio-cli # brew install

    twilio-cli $ twilio api:core:messages:list $ twilio debugger:logs:list @philnash
  31. Twilio CLI $ twilio phone-numbers:update TWILIO_NUMBER --voice-url https://localhost:3000/calls @philnash

  32. TWILIO CLI PLUGINS! @philnash

  33. Twilio CLI $ twilio serverless:init new-project $ twilio serverless:start --ngrok=""

    $ twilio serverless:deploy @philnash
  34. DEMO @philnash

  35. THE TROUBLE WITH WEBHOOKS @philnash

  36. Attack on multiple fronts Simple applications: Twimlets & TwiMLBins Education:

    TwilioQuest Non developers: Studio Dev environment: Serverless Toolkit & Twilio CLI @philnash
  37. Interested? Play TwilioQuest: twilio.com/quest Open source projects: github.com/twilio-labs @philnash

  38. Thanks! @philnash https://philna.sh philnash@twilio.com