curl -H "Authorization: token TOKEN" --request GET https://api.github.com/repos/USERNAME/scripts_and_progs/hooks
curl -H "Authorization: token TOKEN" --request GET https://api.github.com/repos/USERNAME/scripts_and_progs/hooks/158835392
curl -H "Authorization: token TOKEN" -H "Content-Type: application/json" --request POST \ --data '{"name": "web", "active": true, "events": ["pull_request"], "config": {"url": "https://bamboo.example.com/rest/triggers/latest/remote/changeDetection?planKey=TEST-TEST1", "content_type": "json", "insecure_ssl": "0"} }' \ https://api.github.com/repos/USERNAME/scripts_and_progs/hooks
curl -H "Authorization: token TOKEN" --request DELETE https://api.github.com/repos/USERNAME/scripts_and_progs/hooks/158835392