Hello. The bitbucket hook script page:
https://developer.atlassian.com/server/bitbucket/how-tos/register-maintain-hook-scripts/
shows a couple on interesting code snippets describing how to create a web hook script but no examples. How does wrap these snippets into a usable plugin? Thanks!