Webhook Url using golang

How to make Webhook Url for getting log callbacks.

I am guessing that what you are looking for is a simple web service that can receive a POST request, transform the request body to JSON and then store that.

You would need a struct representing your JSON data structure and then use https://golang.org/pkg/encoding/json/#Unmarshal to transform the JSON structure into your struct and store that struct.

Depending on who will be using the webhook you probably want to add some header token or similar to verify the request.

Example implementation https://github.com/kristiannissen/solid-octo-meme

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.