config
properties, see "Get a webhook configuration for a repository."curl --location --request GET 'https://api.github.com/repos///hooks/'
{
"active": true,
"config": {
"content_type": "\"json\"",
"digest": "\"sha256\"",
"email": "\"foo@bar.com\"",
"insecure_ssl": "\"0\"",
"password": "\"foo\"",
"room": "\"roomer\"",
"secret": "\"********\"",
"subdomain": "\"foo\"",
"token": "\"abc\"",
"url": "https://example.com/webhook"
},
"created_at": "2011-09-06T17:26:27Z",
"events": [
"push",
"pull_request"
],
"id": 42,
"last_response": {
"code": 0,
"message": "string",
"status": "string"
},
"name": "web",
"ping_url": "https://api.github.com/repos/octocat/Hello-World/hooks/1/pings",
"test_url": "https://api.github.com/repos/octocat/Hello-World/hooks/1/test",
"type": "string",
"updated_at": "2011-09-06T20:39:23Z",
"url": "https://api.github.com/repos/octocat/Hello-World/hooks/1"
}
Authorization: Bearer ********************
json
and form
. The default is form
.secret
will be used as the key
to generate the HMAC hex digest value for delivery signature headers.【GitHub】API开发者 微信交流群
用微信扫右侧二维码,加入【GitHub】API开发者 交流群,互助沟通