[메모] SAML을 사용하여 Organization 내에서 Giithub APIv3 GET 포맷(curl, Postman)을 사용합니다.
4664 단어 GitHubAPI
원래 GiithubAPI에서 본 곳은 다음과 같은 참고 사이트를 참고하세요.
사이트 축소판 그림
:
가 있는 곳은 변수지원제한하지만 인증 없이도 API
:owner
、web hooks.마치 js는 :repo
terminal
terminal
<Request>
curl https://api.github.com/repos/octokit/webhooks.js/pulls/122
<Response>
{
"url": "https://api.github.com/repos/octokit/webhooks.js/pulls/122",
"id": 402685424,
"node_id": "MDExOlB1bGxSZXF1ZXN0NDAyNjg1NDI0",
"html_url": "https://github.com/octokit/webhooks.js/pull/122",
"diff_url": "https://github.com/octokit/webhooks.js/pull/122.diff",
"patch_url": "https://github.com/octokit/webhooks.js/pull/122.patch",
"issue_url": "https://api.github.com/repos/octokit/webhooks.js/issues/122",
"number": 122,
"state": "open",
...
}
Postman기본 인증 사용(추천하지는 않지만 간단)
terminal
<Request>
① curl -u [username] https://api.github.com/repos/[hoge Organization]/[fuga Repository]/pulls/[1234]
Enter host password for user [username]: [個人アクセストークン]
または
② curl -H 'Authorization: token [個人アクセストークン]' https://api.github.com/repos/[hoge Organization]/[fuga Repository]/pulls/[1234]
<Response>
{
"url": "https://api.github.com/repos/octokit/webhooks.js/pulls/122",
"id": 402685424,
"node_id": "MDExOlB1bGxSZXF1ZXN0NDAyNjg1NDI0",
"html_url": "https://github.com/octokit/webhooks.js/pull/122",
"diff_url": "https://github.com/octokit/webhooks.js/pull/122.diff",
"patch_url": "https://github.com/octokit/webhooks.js/pull/122.patch",
"issue_url": "https://api.github.com/repos/octokit/webhooks.js/issues/122",
"number": 122,
"state": "open",
...
}
TYPE=”Basic Auth”
최후
잘못이 있으면 지적해 주십시오.
Reference
이 문제에 관하여([메모] SAML을 사용하여 Organization 내에서 Giithub APIv3 GET 포맷(curl, Postman)을 사용합니다.), 우리는 이곳에서 더 많은 자료를 발견하고 링크를 클릭하여 보았다 https://qiita.com/okazakishoma/items/6713fd11b35513b66aa6텍스트를 자유롭게 공유하거나 복사할 수 있습니다.하지만 이 문서의 URL은 참조 URL로 남겨 두십시오.
우수한 개발자 콘텐츠 발견에 전념 (Collection and Share based on the CC Protocol.)