$30 off During Our Annual Pro Sale. View Details »

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

    View Slide

  2. Webhooks in the Wild
    @lornajane

    View Slide

  3. How APIs Work
    @lornajane

    View Slide

  4. How APIs Work
    @lornajane

    View Slide

  5. How APIs Work
    @lornajane

    View Slide

  6. How Webhooks Work
    @lornajane

    View Slide

  7. How Webhooks Work
    @lornajane

    View Slide

  8. How Webhooks Work
    @lornajane

    View Slide

  9. What About Time?
    @lornajane

    View Slide

  10. APIs Over Time
    @lornajane

    View Slide

  11. Webhooks Over Time
    @lornajane

    View Slide

  12. Setup
    @lornajane

    View Slide

  13. Setup
    • Subscribe
    • Publish
    @lornajane

    View Slide

  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

    View Slide

  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

    View Slide

  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

    View Slide

  17. Receiving Webhooks
    • Store
    • Acknowledge
    • Process
    @lornajane

    View Slide

  18. View Slide

  19. Thanks!
    Webhooks are awesome :)
    Contact me:
    • @lornajane
    [email protected]
    @lornajane

    View Slide