{"id":32402,"date":"2022-11-15T10:34:46","date_gmt":"2023-05-03T06:43:09","guid":{"rendered":"https:\/\/www.silicloud.com\/zh\/blog\/%e4%bd%bf%e7%94%a8gitapi%e6%b5%8f%e8%a7%88%e6%8f%90%e4%ba%a4%e5%8e%86%e5%8f%b2\/"},"modified":"2024-04-29T00:46:03","modified_gmt":"2024-04-28T16:46:03","slug":"%e4%bd%bf%e7%94%a8gitapi%e6%b5%8f%e8%a7%88%e6%8f%90%e4%ba%a4%e5%8e%86%e5%8f%b2","status":"publish","type":"post","link":"https:\/\/www.silicloud.com\/zh\/blog\/%e4%bd%bf%e7%94%a8gitapi%e6%b5%8f%e8%a7%88%e6%8f%90%e4%ba%a4%e5%8e%86%e5%8f%b2\/","title":{"rendered":"\u4f7f\u7528GitAPI\u6d4f\u89c8\u63d0\u4ea4\u5386\u53f2"},"content":{"rendered":"<h1>\u6211\u60f3\u505a\u7684\u4e8b\u60c5<\/h1>\n<p>\u5728Github\u7684Web API\u4e2d\uff0cGitAPI\u5177\u6709\u67e5\u770b\u6307\u5b9a\u5b58\u50a8\u5e93\u7684\u63d0\u4ea4\u5185\u5bb9\u7684\u529f\u80fd\u3002\u4ec5\u901a\u8fc7\u67e5\u770bGithub\u4e0a\u7684\u63d0\u4ea4\u5386\u53f2\uff0c\u6211\u4eec\u53ea\u80fd\u770b\u5230\u63d0\u4ea4\u7684\u8bc4\u8bba\uff0c\u5927\u6982\u53ef\u4ee5\u5f97\u51fa&#8221;\u6211\u505a\u4e86\u8fd9\u6837\u7684\u4e8b\u60c5&#8221;\u3002\u56e0\u6b64\uff0c\u672c\u6b21\u6211\u4eec\u5c06\u5c1d\u8bd5\u901a\u8fc7GitAPI\u83b7\u53d6\u63d0\u4ea4\u4fe1\u606f\uff0c\u4ee5\u83b7\u5f97\u66f4\u8be6\u7ec6\u7684\u4fe1\u606f\u3002<\/p>\n<h1>\u5c1d\u8bd5\u8fc7\u7684\u4e8b\u60c5 (sh\u00ec q\u00ed gu\u00f2 de<\/h1>\n<p>\u4f7f\u7528Python\u7684json\u548crequests\u5e93\u8bbf\u95eeGitAPI<br \/>\n\u5c06\u4ece\u8fd4\u56de\u7684\u63d0\u4ea4\u4fe1\u606f\u4f5c\u4e3a\u5217\u8868\uff0c\u8bd5\u7740\u5c06\u67d0\u4e9b\u4fe1\u606f\u7684\u53d8\u5316\u8f6c\u6362\u4e3a\u5217\u8868\u5f62\u5f0f<\/p>\n<h1>\u5bf9GitAPI\u7684\u8bbf\u95ee<\/h1>\n<p>\u8bbf\u95ee&#8221;https:\/\/api.github.com\/repos\/\u6240\u6709\u8005\u540d\/\u4ed3\u5e93\u540d\/commits&#8221;\uff0c\u5c31\u53ef\u4ee5\u67e5\u770b\u8be5\u6240\u6709\u8005\u62e5\u6709\u7684\u4ed3\u5e93\u7684\u63d0\u4ea4\u5386\u53f2\u8bb0\u5f55\u3002\u4f7f\u7528Python\u8fdb\u884c\u8bbf\u95ee\u65f6\uff0c\u53ef\u4ee5\u4f7f\u7528requests.get\u65b9\u6cd5\u3002response = requests.get(https:\/\/api.github.com\/repos\/someone\/hogehoge\/commits)\u3002\u901a\u8fc7\u4f7f\u7528json.loads\u51fd\u6570\u52a0\u8f7djson\u6570\u636e\uff0c\u53ef\u4ee5\u5c06\u63d0\u4ea4\u4fe1\u606f\u4f5c\u4e3a\u5b57\u5178\u5217\u8868\u83b7\u53d6\u3002data = json.loads(response.text)\u3002\u7531\u4e8e\u4e00\u4e2a{}\u5bf9\u5e94\u5217\u8868\u7684\u4e00\u7ef4\u6570\u636e\uff0c\u901a\u8fc7\u9002\u5f53\u7684\u5904\u7406\u53ef\u4ee5\u63d0\u53d6\u51fa\u4ec5\u5305\u542b\u63d0\u4ea4\u8005\u59d3\u540d\u548c\u65e5\u671f\u7b49\u8be6\u7ec6\u4fe1\u606f\u7684\u6570\u636e\u3002\u9700\u8981\u6ce8\u610f\u7684\u662f\uff0c\u6b63\u5982\u8bd5\u56fe\u8bbf\u95eeGitAPI\u6240\u793a\uff0c\u901a\u8fc7\u8be5\u9875\u9762\u53ef\u4ee5\u770b\u5230\u7684\u53ea\u662f\u63d0\u4ea4\u672c\u8eab\u7684\u4fe1\u606f\u3002\u8981\u83b7\u53d6\u63d0\u4ea4\u6240\u5bf9\u5e94\u7684\u6587\u4ef6\u4fe1\u606f\u548c\u63d0\u4ea4\u8005\u4fe1\u606f\u7b49\uff0c\u9700\u8981\u8df3\u8f6c\u5230\u663e\u793a\u7684URL\u4e0a\u3002\u7531\u4e8e\u6211\u9700\u8981\u6587\u4ef6\u540d\u4fe1\u606f\uff0c\u6240\u4ee5\u5728\u8bbf\u95ee\u540e\u8fd8\u8981\u8fdb\u4e00\u6b65\u8bbf\u95ee[&#8220;url&#8221;]\uff0c\u7136\u540e\u67e5\u770b[&#8220;files&#8221;][&#8220;\u6587\u4ef6\u5e8f\u53f7&#8221;][&#8220;filename&#8221;]\u3002<\/p>\n<p>\u8fd0\u884c\u7ed3\u679c\u5c06\u5982\u4e0b\u6240\u793a<\/p>\n<pre class=\"post-pre\"><code>    \"sha\": \"59cb4e3f51bdb76a1bedd105fbd5fb3be82adf1a\",\r\n    \"node_id\": \"MDY6Q29tbWl0MTA0MDY1MTY5OjU5Y2I0ZTNmNTFiZGI3NmExYmVkZDEwNWZiZDVmYjNiZTgyYWRmMWE=\",\r\n    \"commit\": {\r\n      \"author\": {\r\n        \"name\": \"dependabot[bot]\",\r\n        \"email\": \"49699333+dependabot[bot]@users.noreply.github.com\",\r\n        \"date\": \"2019-12-27T09:00:22Z\"\r\n      },\r\n      \"committer\": {\r\n        \"name\": \"Phoebe Schmidt\",\r\n        \"email\": \"phoebe.schmidt@contentful.com\",\r\n        \"date\": \"2019-12-27T09:00:22Z\"\r\n      },\r\n      \"message\": \"build(deps): bump handlebars from 4.0.11 to 4.5.3 (#135)\\n\\nBumps [handlebars](https:\/\/github.com\/wycats\/handlebars.js) from 4.0.11 to 4.5.3.\\r\\n- [Release notes](https:\/\/github.com\/wycats\/handlebars.js\/releases)\\r\\n- [Changelog](https:\/\/github.com\/wycats\/handlebars.js\/blob\/master\/release-notes.md)\\r\\n- [Commits](https:\/\/github.com\/wycats\/handlebars.js\/compare\/v4.0.11...v4.5.3)\\r\\n\\r\\nSigned-off-by: dependabot[bot] &lt;support@github.com&gt;\",\r\n      \"tree\": {\r\n        \"sha\": \"201d165acef15f78a8bd53d821850fdcbe1058b1\",\r\n        \"url\": \"https:\/\/api.github.com\/repos\/contentful\/the-example-app.nodejs\/git\/trees\/201d165acef15f78a8bd53d821850fdcbe1058b1\"\r\n      },\r\n      \"url\": \"https:\/\/api.github.com\/repos\/contentful\/the-example-app.nodejs\/git\/commits\/59cb4e3f51bdb76a1bedd105fbd5fb3be82adf1a\",\r\n      \"comment_count\": 0,\r\n      \"verification\": {\r\n        \"verified\": false,\r\n        \"reason\": \"unsigned\",\r\n        \"signature\": null,\r\n        \"payload\": null\r\n      }\r\n    },\r\n    \"url\": \"https:\/\/api.github.com\/repos\/contentful\/the-example-app.nodejs\/commits\/59cb4e3f51bdb76a1bedd105fbd5fb3be82adf1a\",\r\n    \"html_url\": \"https:\/\/github.com\/contentful\/the-example-app.nodejs\/commit\/59cb4e3f51bdb76a1bedd105fbd5fb3be82adf1a\",\r\n    \"comments_url\": \"https:\/\/api.github.com\/repos\/contentful\/the-example-app.nodejs\/commits\/59cb4e3f51bdb76a1bedd105fbd5fb3be82adf1a\/comments\",\r\n    \"author\": {\r\n      \"login\": \"dependabot[bot]\",\r\n      \"id\": 49699333,\r\n      \"node_id\": \"MDM6Qm90NDk2OTkzMzM=\",\r\n      \"avatar_url\": \"https:\/\/avatars.githubusercontent.com\/in\/29110?v=4\",\r\n      \"gravatar_id\": \"\",\r\n      \"url\": \"https:\/\/api.github.com\/users\/dependabot%5Bbot%5D\",\r\n      \"html_url\": \"https:\/\/github.com\/apps\/dependabot\",\r\n      \"followers_url\": \"https:\/\/api.github.com\/users\/dependabot%5Bbot%5D\/followers\",\r\n      \"following_url\": \"https:\/\/api.github.com\/users\/dependabot%5Bbot%5D\/following{\/other_user}\",\r\n      \"gists_url\": \"https:\/\/api.github.com\/users\/dependabot%5Bbot%5D\/gists{\/gist_id}\",\r\n      \"starred_url\": \"https:\/\/api.github.com\/users\/dependabot%5Bbot%5D\/starred{\/owner}{\/repo}\",\r\n      \"subscriptions_url\": \"https:\/\/api.github.com\/users\/dependabot%5Bbot%5D\/subscriptions\",\r\n      \"organizations_url\": \"https:\/\/api.github.com\/users\/dependabot%5Bbot%5D\/orgs\",\r\n      \"repos_url\": \"https:\/\/api.github.com\/users\/dependabot%5Bbot%5D\/repos\",\r\n      \"events_url\": \"https:\/\/api.github.com\/users\/dependabot%5Bbot%5D\/events{\/privacy}\",\r\n      \"received_events_url\": \"https:\/\/api.github.com\/users\/dependabot%5Bbot%5D\/received_events\",\r\n      \"type\": \"Bot\",\r\n      \"site_admin\": false\r\n    },\r\n    \"committer\": {\r\n      \"login\": \"phoebeschmidt\",\r\n      \"id\": 13663991,\r\n      \"node_id\": \"MDQ6VXNlcjEzNjYzOTkx\",\r\n      \"avatar_url\": \"https:\/\/avatars.githubusercontent.com\/u\/13663991?v=4\",\r\n      \"gravatar_id\": \"\",\r\n      \"url\": \"https:\/\/api.github.com\/users\/phoebeschmidt\",\r\n      \"html_url\": \"https:\/\/github.com\/phoebeschmidt\",\r\n      \"followers_url\": \"https:\/\/api.github.com\/users\/phoebeschmidt\/followers\",\r\n      \"following_url\": \"https:\/\/api.github.com\/users\/phoebeschmidt\/following{\/other_user}\",\r\n      \"gists_url\": \"https:\/\/api.github.com\/users\/phoebeschmidt\/gists{\/gist_id}\",\r\n      \"starred_url\": \"https:\/\/api.github.com\/users\/phoebeschmidt\/starred{\/owner}{\/repo}\",\r\n      \"subscriptions_url\": \"https:\/\/api.github.com\/users\/phoebeschmidt\/subscriptions\",\r\n      \"organizations_url\": \"https:\/\/api.github.com\/users\/phoebeschmidt\/orgs\",\r\n      \"repos_url\": \"https:\/\/api.github.com\/users\/phoebeschmidt\/repos\",\r\n      \"events_url\": \"https:\/\/api.github.com\/users\/phoebeschmidt\/events{\/privacy}\",\r\n      \"received_events_url\": \"https:\/\/api.github.com\/users\/phoebeschmidt\/received_events\",\r\n      \"type\": \"User\",\r\n      \"site_admin\": false\r\n    },\r\n    \"parents\": [\r\n      {\r\n        \"sha\": \"fa92ca3f8f0db1fbadb79b33f078f38981a4bee2\",\r\n        \"url\": \"https:\/\/api.github.com\/repos\/contentful\/the-example-app.nodejs\/commits\/fa92ca3f8f0db1fbadb79b33f078f38981a4bee2\",\r\n        \"html_url\": \"https:\/\/github.com\/contentful\/the-example-app.nodejs\/commit\/fa92ca3f8f0db1fbadb79b33f078f38981a4bee2\"\r\n      }```\r\n\r\n\u3069\u3046\u3082GitAPI\u3067\u306f\u4e00\u5ea6\u306b\u8868\u793a\u3067\u304d\u308b\u30b3\u30df\u30c3\u30c8\u306f30\u4ef6\u304c\u9650\u754c\u306e\u3088\u3046\u3067\u3059\u306e\u3067\u3001\u305d\u308c\u4ee5\u4e0a\u3092\u898b\u305f\u3044\u5834\u5408\u306f\u3001\u30da\u30fc\u30b8\u3092\u5207\u308a\u66ff\u3048\u3066\u3082\u3046\u4e00\u5ea6\u3084\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\r\n\"https:\/\/api.github.com\/repos\/\u6240\u6709\u8005\u540d\/\u30ea\u30dd\u30b8\u30c8\u30ea\u540d\/commits?page=\u30da\u30fc\u30b8\u6570\"\r\n<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>\u6211\u60f3\u505a\u7684\u4e8b\u60c5 \u5728Github\u7684Web API\u4e2d\uff0cGitAPI\u5177\u6709\u67e5\u770b\u6307\u5b9a\u5b58\u50a8\u5e93\u7684\u63d0\u4ea4\u5185\u5bb9\u7684\u529f\u80fd\u3002\u4ec5\u901a\u8fc7\u67e5\u770bGi [&hellip;]<\/p>\n","protected":false},"author":11,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-32402","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v21.5 (Yoast SEO v21.5) - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>\u4f7f\u7528GitAPI\u6d4f\u89c8\u63d0\u4ea4\u5386\u53f2 - Blog - Silicon Cloud<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.silicloud.com\/zh\/blog\/\u4f7f\u7528gitapi\u6d4f\u89c8\u63d0\u4ea4\u5386\u53f2\/\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u4f7f\u7528GitAPI\u6d4f\u89c8\u63d0\u4ea4\u5386\u53f2\" \/>\n<meta property=\"og:description\" content=\"\u6211\u60f3\u505a\u7684\u4e8b\u60c5 \u5728Github\u7684Web API\u4e2d\uff0cGitAPI\u5177\u6709\u67e5\u770b\u6307\u5b9a\u5b58\u50a8\u5e93\u7684\u63d0\u4ea4\u5185\u5bb9\u7684\u529f\u80fd\u3002\u4ec5\u901a\u8fc7\u67e5\u770bGi [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.silicloud.com\/zh\/blog\/\u4f7f\u7528gitapi\u6d4f\u89c8\u63d0\u4ea4\u5386\u53f2\/\" \/>\n<meta property=\"og:site_name\" content=\"Blog - Silicon Cloud\" \/>\n<meta property=\"article:published_time\" content=\"2023-05-03T06:43:09+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-04-28T16:46:03+00:00\" \/>\n<meta name=\"author\" content=\"\u65b0, \u97f5\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"\u65b0, \u97f5\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e4%bd%bf%e7%94%a8gitapi%e6%b5%8f%e8%a7%88%e6%8f%90%e4%ba%a4%e5%8e%86%e5%8f%b2\/\",\"url\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e4%bd%bf%e7%94%a8gitapi%e6%b5%8f%e8%a7%88%e6%8f%90%e4%ba%a4%e5%8e%86%e5%8f%b2\/\",\"name\":\"\u4f7f\u7528GitAPI\u6d4f\u89c8\u63d0\u4ea4\u5386\u53f2 - Blog - Silicon Cloud\",\"isPartOf\":{\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#website\"},\"datePublished\":\"2023-05-03T06:43:09+00:00\",\"dateModified\":\"2024-04-28T16:46:03+00:00\",\"author\":{\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/4ba4019495123db3038fd0809e6959c9\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e4%bd%bf%e7%94%a8gitapi%e6%b5%8f%e8%a7%88%e6%8f%90%e4%ba%a4%e5%8e%86%e5%8f%b2\/#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.silicloud.com\/zh\/blog\/%e4%bd%bf%e7%94%a8gitapi%e6%b5%8f%e8%a7%88%e6%8f%90%e4%ba%a4%e5%8e%86%e5%8f%b2\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e4%bd%bf%e7%94%a8gitapi%e6%b5%8f%e8%a7%88%e6%8f%90%e4%ba%a4%e5%8e%86%e5%8f%b2\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.silicloud.com\/zh\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u4f7f\u7528GitAPI\u6d4f\u89c8\u63d0\u4ea4\u5386\u53f2\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#website\",\"url\":\"https:\/\/www.silicloud.com\/zh\/blog\/\",\"name\":\"Blog - Silicon Cloud\",\"description\":\"\",\"inLanguage\":\"zh-Hans\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/4ba4019495123db3038fd0809e6959c9\",\"name\":\"\u65b0, \u97f5\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/d484b6c6e4ae82e8a9efea989e1d2af46d9b6ef128101e63b18f559fca0ae627?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/d484b6c6e4ae82e8a9efea989e1d2af46d9b6ef128101e63b18f559fca0ae627?s=96&d=mm&r=g\",\"caption\":\"\u65b0, \u97f5\"},\"url\":\"https:\/\/www.silicloud.com\/zh\/blog\/author\/yunxin\/\"},{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e4%bd%bf%e7%94%a8gitapi%e6%b5%8f%e8%a7%88%e6%8f%90%e4%ba%a4%e5%8e%86%e5%8f%b2\/#local-main-organization-logo\",\"url\":\"\",\"contentUrl\":\"\",\"caption\":\"Blog - Silicon Cloud\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"\u4f7f\u7528GitAPI\u6d4f\u89c8\u63d0\u4ea4\u5386\u53f2 - Blog - Silicon Cloud","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.silicloud.com\/zh\/blog\/\u4f7f\u7528gitapi\u6d4f\u89c8\u63d0\u4ea4\u5386\u53f2\/","og_locale":"zh_CN","og_type":"article","og_title":"\u4f7f\u7528GitAPI\u6d4f\u89c8\u63d0\u4ea4\u5386\u53f2","og_description":"\u6211\u60f3\u505a\u7684\u4e8b\u60c5 \u5728Github\u7684Web API\u4e2d\uff0cGitAPI\u5177\u6709\u67e5\u770b\u6307\u5b9a\u5b58\u50a8\u5e93\u7684\u63d0\u4ea4\u5185\u5bb9\u7684\u529f\u80fd\u3002\u4ec5\u901a\u8fc7\u67e5\u770bGi [&hellip;]","og_url":"https:\/\/www.silicloud.com\/zh\/blog\/\u4f7f\u7528gitapi\u6d4f\u89c8\u63d0\u4ea4\u5386\u53f2\/","og_site_name":"Blog - Silicon Cloud","article_published_time":"2023-05-03T06:43:09+00:00","article_modified_time":"2024-04-28T16:46:03+00:00","author":"\u65b0, \u97f5","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"\u65b0, \u97f5","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"3 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.silicloud.com\/zh\/blog\/%e4%bd%bf%e7%94%a8gitapi%e6%b5%8f%e8%a7%88%e6%8f%90%e4%ba%a4%e5%8e%86%e5%8f%b2\/","url":"https:\/\/www.silicloud.com\/zh\/blog\/%e4%bd%bf%e7%94%a8gitapi%e6%b5%8f%e8%a7%88%e6%8f%90%e4%ba%a4%e5%8e%86%e5%8f%b2\/","name":"\u4f7f\u7528GitAPI\u6d4f\u89c8\u63d0\u4ea4\u5386\u53f2 - Blog - Silicon Cloud","isPartOf":{"@id":"https:\/\/www.silicloud.com\/zh\/blog\/#website"},"datePublished":"2023-05-03T06:43:09+00:00","dateModified":"2024-04-28T16:46:03+00:00","author":{"@id":"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/4ba4019495123db3038fd0809e6959c9"},"breadcrumb":{"@id":"https:\/\/www.silicloud.com\/zh\/blog\/%e4%bd%bf%e7%94%a8gitapi%e6%b5%8f%e8%a7%88%e6%8f%90%e4%ba%a4%e5%8e%86%e5%8f%b2\/#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.silicloud.com\/zh\/blog\/%e4%bd%bf%e7%94%a8gitapi%e6%b5%8f%e8%a7%88%e6%8f%90%e4%ba%a4%e5%8e%86%e5%8f%b2\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.silicloud.com\/zh\/blog\/%e4%bd%bf%e7%94%a8gitapi%e6%b5%8f%e8%a7%88%e6%8f%90%e4%ba%a4%e5%8e%86%e5%8f%b2\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.silicloud.com\/zh\/blog\/"},{"@type":"ListItem","position":2,"name":"\u4f7f\u7528GitAPI\u6d4f\u89c8\u63d0\u4ea4\u5386\u53f2"}]},{"@type":"WebSite","@id":"https:\/\/www.silicloud.com\/zh\/blog\/#website","url":"https:\/\/www.silicloud.com\/zh\/blog\/","name":"Blog - Silicon Cloud","description":"","inLanguage":"zh-Hans"},{"@type":"Person","@id":"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/4ba4019495123db3038fd0809e6959c9","name":"\u65b0, \u97f5","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/d484b6c6e4ae82e8a9efea989e1d2af46d9b6ef128101e63b18f559fca0ae627?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/d484b6c6e4ae82e8a9efea989e1d2af46d9b6ef128101e63b18f559fca0ae627?s=96&d=mm&r=g","caption":"\u65b0, \u97f5"},"url":"https:\/\/www.silicloud.com\/zh\/blog\/author\/yunxin\/"},{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.silicloud.com\/zh\/blog\/%e4%bd%bf%e7%94%a8gitapi%e6%b5%8f%e8%a7%88%e6%8f%90%e4%ba%a4%e5%8e%86%e5%8f%b2\/#local-main-organization-logo","url":"","contentUrl":"","caption":"Blog - Silicon Cloud"}]}},"_links":{"self":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts\/32402","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/users\/11"}],"replies":[{"embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/comments?post=32402"}],"version-history":[{"count":2,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts\/32402\/revisions"}],"predecessor-version":[{"id":69323,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts\/32402\/revisions\/69323"}],"wp:attachment":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/media?parent=32402"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/categories?post=32402"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/tags?post=32402"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}