https://github.com/rubenv/webhooksite
Go library for webhook.site
https://github.com/rubenv/webhooksite
go golang webh webhook webhook-site webhooks
Last synced: 9 months ago
JSON representation
Go library for webhook.site
- Host: GitHub
- URL: https://github.com/rubenv/webhooksite
- Owner: rubenv
- License: mit
- Created: 2020-03-18T10:01:24.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2020-03-18T10:55:03.000Z (over 6 years ago)
- Last Synced: 2025-08-03T19:07:12.947Z (11 months ago)
- Topics: go, golang, webh, webhook, webhook-site, webhooks
- Language: Go
- Size: 7.81 KB
- Stars: 0
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# webhooksite
> Go library for [webhook.site](https://webhook.site/)
[](https://github.com/rubenv/webhooksite/actions) [](https://godoc.org/github.com/rubenv/webhooksite)
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
```go
// 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) license.