Slide 1

Slide 1 text

THE TROUBLE WITH WEBHOOKS @philnash

Slide 2

Slide 2 text

Phil Nash @philnash https://philna.sh [email protected]

Slide 3

Slide 3 text

WHAT IS A WEBHOOK? @philnash

Slide 4

Slide 4 text

What is a webhook? “User defined HTTP callbacks” POST /webhook HTTP/1.1 Host: www.yourwebsite.com @philnash

Slide 5

Slide 5 text

Who uses webhooks? Twilio, SendGrid, Stripe, GitHub, DropBox, Auth0, Slack... @philnash

Slide 6

Slide 6 text

WHAT'S THE TROUBLE? @philnash

Slide 7

Slide 7 text

WHAT'S THE DEVELOPER EXPERIENCE? @philnash

Slide 8

Slide 8 text

How do I test this? Online: RequestBin, PostBin Tunnels: ngrok, localtunnel, serveo, tunnelto Deploy and test in production @philnash

Slide 9

Slide 9 text

WHAT CAN WE DO ABOUT IT? @philnash

Slide 10

Slide 10 text

DOCUMENTATION SHOULD GO WITHOUT SAYING @philnash

Slide 11

Slide 11 text

HOST CODE FOR DEVELOPERS @philnash

Slide 12

Slide 12 text

TWIMLETS @philnash

Slide 13

Slide 13 text

@philnash

Slide 14

Slide 14 text

TWIMLBINS @philnash

Slide 15

Slide 15 text

@philnash

Slide 16

Slide 16 text

SERVERLESS @philnash

Slide 17

Slide 17 text

@philnash

Slide 18

Slide 18 text

STUDIO @philnash

Slide 19

Slide 19 text

@philnash

Slide 20

Slide 20 text

INTERACTIVE EXPERIENCES @philnash

Slide 21

Slide 21 text

TWILIOQUEST @philnash

Slide 22

Slide 22 text

@philnash

Slide 23

Slide 23 text

@philnash

Slide 24

Slide 24 text

@philnash

Slide 25

Slide 25 text

DEMO @philnash

Slide 26

Slide 26 text

TOOLING @philnash

Slide 27

Slide 27 text

SERVERLESS TOOLKIT @philnash

Slide 28

Slide 28 text

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

Slide 29

Slide 29 text

TWILIO CLI @philnash

Slide 30

Slide 30 text

Twilio CLI $ npm install -g twilio-cli # brew install twilio-cli $ twilio api:core:messages:list $ twilio debugger:logs:list @philnash

Slide 31

Slide 31 text

Twilio CLI $ twilio phone-numbers:update TWILIO_NUMBER --voice-url https://localhost:3000/calls @philnash

Slide 32

Slide 32 text

TWILIO CLI PLUGINS! @philnash

Slide 33

Slide 33 text

Twilio CLI $ twilio serverless:init new-project $ twilio serverless:start --ngrok="" $ twilio serverless:deploy @philnash

Slide 34

Slide 34 text

DEMO @philnash

Slide 35

Slide 35 text

THE TROUBLE WITH WEBHOOKS @philnash

Slide 36

Slide 36 text

Attack on multiple fronts Simple applications: Twimlets & TwiMLBins Education: TwilioQuest Non developers: Studio Dev environment: Serverless Toolkit & Twilio CLI @philnash

Slide 37

Slide 37 text

Interested? Play TwilioQuest: twilio.com/quest Open source projects: github.com/twilio-labs @philnash

Slide 38

Slide 38 text

Thanks! @philnash https://philna.sh [email protected]