code
used to retrieve the GitHub App's id
, pem
(private key), and webhook_secret
.curl --location --request POST 'https://api.github.com/app-manifests//conversions' \
--header 'Content-Type: application/json' \
--data-raw '{}'
{
"client_id": "string",
"client_secret": "string",
"created_at": "2017-07-08T16:18:44-04:00",
"description": "The description of the app.",
"events": [
"label",
"deployment"
],
"external_url": "https://example.com",
"html_url": "https://github.com/apps/super-ci",
"id": 37,
"installations_count": 5,
"name": "Probot Owners",
"node_id": "MDExOkludGVncmF0aW9uMQ==",
"owner": {
"avatar_url": "https://github.com/images/error/octocat_happy.gif",
"events_url": "https://api.github.com/users/octocat/events{/privacy}",
"followers_url": "https://api.github.com/users/octocat/followers",
"following_url": "https://api.github.com/users/octocat/following{/other_user}",
"gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
"gravatar_id": "41d064eb2195891e12d0413f63227ea7",
"html_url": "https://github.com/octocat",
"id": 1,
"login": "octocat",
"node_id": "MDQ6VXNlcjE=",
"organizations_url": "https://api.github.com/users/octocat/orgs",
"received_events_url": "https://api.github.com/users/octocat/received_events",
"repos_url": "https://api.github.com/users/octocat/repos",
"site_admin": true,
"starred_at": "\"2020-07-09T00:17:55Z\"",
"starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
"type": "User",
"url": "https://api.github.com/users/octocat"
},
"pem": "string",
"permissions": {
"deployments": "write",
"issues": "read"
},
"slug": "probot-owners",
"updated_at": "2017-07-08T16:18:44-04:00",
"webhook_secret": "string"
}
Authorization: Bearer ********************
【GitHub】API开发者 微信交流群
用微信扫右侧二维码,加入【GitHub】API开发者 交流群,互助沟通