Upgrade to Pro — share decks privately, control downloads, hide ads and more …

The Wonderful World of Webhooks

The Wonderful World of Webhooks

Short tech talk slot from Lead Developer 2016

Lorna Mitchell

June 23, 2016
Tweet

More Decks by Lorna Mitchell

Other Decks in Technology

Transcript

  1. The Wonderful World of Webhooks Lorna Jane Mitchell, LeadDev 2016

  2. Webhooks in the Wild @lornajane

  3. How APIs Work @lornajane

  4. How APIs Work @lornajane

  5. How APIs Work @lornajane

  6. How Webhooks Work @lornajane

  7. How Webhooks Work @lornajane

  8. How Webhooks Work @lornajane

  9. What About Time? @lornajane

  10. APIs Over Time @lornajane

  11. Webhooks Over Time @lornajane

  12. Setup @lornajane

  13. Setup • Subscribe • Publish @lornajane

  14. Inside A Webhook Webhook for github wiki page created {

    "pages": [ { "page_name": "Home", "title": "Home", "summary": null, "action": "created", ... and 111 more lines @lornajane
  15. Inside A Webhook This hook will contain: • The pages

    that changed in the wiki • The repository • The owner of the repository • The user that sent this change Includes much hypermedia @lornajane
  16. Inside A Webhook "owner": { "login": "baxterthehacker", "id": 6752317, "avatar_url":

    "https://avatars.githubusercontent.com/u/6752317?v=3", "url": "https://api.github.com/users/baxterthehacker", "html_url": "https://github.com/baxterthehacker", "gists_url": "https://api.github.com/users/baxterthehacker/gists{/gist_id}", "repos_url": "https://api.github.com/users/baxterthehacker/repos", "events_url": "https://api.github.com/users/baxterthehacker/events{/privacy}", "received_events_url": "https://api.github.com/users/baxterthehacker/received_events "type": "User", "site_admin": false } @lornajane
  17. Receiving Webhooks • Store • Acknowledge • Process @lornajane

  18. None
  19. Thanks! Webhooks are awesome :) Contact me: • @lornajane •

    lorna.mitchell@uk.ibm.com @lornajane