Skip to content

Latest commit

 

History

History
34 lines (22 loc) · 875 Bytes

File metadata and controls

34 lines (22 loc) · 875 Bytes

webhooksite

Go library for webhook.site

Build Status GoDoc

Simple library to test webhook calls, ideal for testing callbacks in a CI server that doesn't accept calls from the outside world.

Features:

  • Create tokens, inspect results
  • Can be configured to use a self-hosted webhook.site instance
  • Zero dependencies!

Usage

// Create a client
c := webhooksite.New()

// Fetch a token
token, err := c.CreateToken()

// Do a webhook call
// curl {{ token.URL }}

// Fetch the requests
reqs, err := c.GetRequests(token.UUID)

License

This library is distributed under the MIT license.