Using githook with bitbucket.org

Go integration

Install
go get github.com/relaymesh/githook
Quick start
import "githook"

// Initialize client
client := githook.NewClient("YOUR_API_KEY")
Get current user
curl \
  -H "Authorization: $API_KEY" \
  https://api.bitbucket.org/2.0/user
List snippets
curl \
  -H "Authorization: $API_KEY" \
  https://api.bitbucket.org/2.0/snippets
List workspaces for user
curl \
  -H "Authorization: $API_KEY" \
  https://api.bitbucket.org/2.0/workspaces
SDK on GitHub 📄 API Docs
SDK
githook
Go
API
bitbucket.org
bitbucket.org
At a glance
Language Go
Endpoints303
Base URLhttps://api.bitbucket.org/2.0