{"id":1665,"date":"2022-08-01T17:19:00","date_gmt":"2022-08-01T09:19:00","guid":{"rendered":"https:\/\/qishiya.com\/?p=1665"},"modified":"2022-08-05T17:21:14","modified_gmt":"2022-08-05T09:21:14","slug":"google-api-%e5%af%b9-php-%e5%bc%80%e5%8f%91%e8%80%85%e4%b8%8d%e5%8f%8b%e5%a5%bd","status":"publish","type":"post","link":"https:\/\/qishiya.com\/?p=1665","title":{"rendered":"Google Api \u5bf9 PHP \u5f00\u53d1\u8005\u4e0d\u53cb\u597d"},"content":{"rendered":"\n<p>Google \u5f88\u591a API\uff0c\u4e3b\u8981\u7528 java, js, Golang \u7b49\u8bed\u8a00\u5199\u4e86\u6837\u5217\uff0c\u4f46\u662f\u5728 PHP \u8fd9\u4e00\u5757\uff0c\u6837\u4f8b\u5c31\u5f88\u5c11\uff0c\u6211\u60f3\u6700\u76f4\u63a5\u7684\u539f\u56e0\u53ef\u80fd\u662f Google \u4e0d\u7528 PHP\uff0c\u50cf\u56fd\u5185\u7684\u817e\u8baf\uff0c\u65b0\u6d6a \u4e4b\u7c7b\u7684\u7528 PHP \u8bed\u8a00\u7684\uff0cPHP \u6837\u4f8b\u5c31\u5199\u7684\u975e\u5e38\u4e0d\u9519\uff0c\u6211\u4eca\u5929\u5728\u8c03\u7528 Google \u7ffb\u8bd1\u7684\u65f6\u5019\uff0c\u9047\u5230\u4e86\u597d\u51e0\u4e2a\u95ee\u9898\uff0c\u73b0\u603b\u7ed3\u5982\u4e0b\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/tutu-1252436247.cos.ap-beijing.myqcloud.com\/2022\/08\/20220805IgXobC.png\" alt=\"20220805IgXobC\"\/><\/figure>\n\n\n\n<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_61 counter-hierarchy ez-toc-counter ez-toc-custom ez-toc-container-direction\">\n<div class=\"ez-toc-title-container\">\n<p class=\"ez-toc-title \" >\u76ee\u5f55<\/p>\n<span class=\"ez-toc-title-toggle\"><a href=\"#\" class=\"ez-toc-pull-right ez-toc-btn ez-toc-btn-xs ez-toc-btn-default ez-toc-toggle\" aria-label=\"Toggle Table of Content\"><span class=\"ez-toc-js-icon-con\"><span class=\"\"><span class=\"eztoc-hide\" style=\"display:none;\">Toggle<\/span><span class=\"ez-toc-icon-toggle-span\"><svg style=\"fill: #ff6200;color:#ff6200\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" class=\"list-377408\" width=\"20px\" height=\"20px\" viewBox=\"0 0 24 24\" fill=\"none\"><path d=\"M6 6H4v2h2V6zm14 0H8v2h12V6zM4 11h2v2H4v-2zm16 0H8v2h12v-2zM4 16h2v2H4v-2zm16 0H8v2h12v-2z\" fill=\"currentColor\"><\/path><\/svg><svg style=\"fill: #ff6200;color:#ff6200\" class=\"arrow-unsorted-368013\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"10px\" height=\"10px\" viewBox=\"0 0 24 24\" version=\"1.2\" baseProfile=\"tiny\"><path d=\"M18.2 9.3l-6.2-6.3-6.2 6.3c-.2.2-.3.4-.3.7s.1.5.3.7c.2.2.4.3.7.3h11c.3 0 .5-.1.7-.3.2-.2.3-.5.3-.7s-.1-.5-.3-.7zM5.8 14.7l6.2 6.3 6.2-6.3c.2-.2.3-.5.3-.7s-.1-.5-.3-.7c-.2-.2-.4-.3-.7-.3h-11c-.3 0-.5.1-.7.3-.2.2-.3.5-.3.7s.1.5.3.7z\"\/><\/svg><\/span><\/span><\/span><\/a><\/span><\/div>\n<nav><ul class='ez-toc-list ez-toc-list-level-1 ' ><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/qishiya.com\/?p=1665\/#%E8%AE%A4%E8%AF%81\" title=\"\u8ba4\u8bc1\">\u8ba4\u8bc1<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/qishiya.com\/?p=1665\/#PHP_%E8%B0%83%E7%94%A8%E6%96%B9%E5%BC%8F\" title=\"PHP \u8c03\u7528\u65b9\u5f0f\">PHP \u8c03\u7528\u65b9\u5f0f<\/a><\/li><\/ul><\/nav><\/div>\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"%E8%AE%A4%E8%AF%81\"><\/span>\u8ba4\u8bc1<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>\u8c03\u7528 Google \u7684\u4efb\u4f55 API \u90fd\u8981\u8ba4\u8bc1\u6388\u6743\uff0c\u5b98\u65b9\u6587\u6863\u6ca1\u6709\u8be6\u7ec6\u7684\u8bf4\uff0c\u4f46\u662f\u5728 googleapis \u627e\u5230\u4e86\u4e00\u4e2a\u5e93\uff0c\u91cc\u9762\u8bb2\u4e86\u51e0\u79cd\u8ba4\u8bc1\u7684\u65b9\u5f0f\u3002<\/p>\n\n\n\n<p><a href=\"https:\/\/github.com\/googleapis\/google-auth-library-php\">GitHub &#8211; googleapis\/google-auth-library-php: Google Auth Library for PHP<\/a><\/p>\n\n\n\n<p>\u91cc\u9762\u5b9e\u73b0\u4e86\u597d\u51e0\u79cd\u65b9\u5f0f\uff0c\u770b\u4e0b\u6765\u57fa\u672c\u4e0a\u5c31\u628a PHP \u8c03\u7528 Google API \u7684\u8ba4\u8bc1\u65b9\u5f0f\u8bb2\u660e\u767d\u4e86\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"PHP_%E8%B0%83%E7%94%A8%E6%96%B9%E5%BC%8F\"><\/span>PHP \u8c03\u7528\u65b9\u5f0f<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p><a href=\"https:\/\/github.com\/GoogleCloudPlatform\/php-docs-samples\">GitHub &#8211; GoogleCloudPlatform\/php-docs-samples: A collection of samples that demonstrate how to call Google Cloud services from PHP.<\/a><\/p>\n\n\n\n<p>\u5404\u79cd API \u7684\u8c03\u7528 Demo\uff0c\u5f88\u5168\uff0c\u4f46\u4e0d\u4e00\u5b9a\u662f\u6700\u65b0\u7684\uff0c\u8981\u81ea\u5df1\u6311\uff0c\u6211\u4eca\u5929\u91cd\u70b9\u770b\u4e86\u4ed6\u7684\u7ffb\u8bd1 API.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/tutu-1252436247.cos.ap-beijing.myqcloud.com\/2022\/08\/20220805wuLauh.png\" alt=\"20220805wuLauh\"\/><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>Google \u5f88\u591a API\uff0c\u4e3b\u8981\u7528 java, js, Golang \u7b49\u8bed\u8a00\u5199\u4e86\u6837\u5217\uff0c\u4f46\u662f\u5728 PHP \u8fd9\u4e00\u5757\uff0c\u6837\u4f8b\u5c31\u5f88\u5c11\uff0c\u6211\u60f3\u6700\u76f4\u63a5\u7684\u539f\u56e0\u53ef\u80fd\u662f Google \u4e0d\u7528 PHP\uff0c\u50cf\u56fd\u5185\u7684\u817e\u8baf\uff0c\u65b0\u6d6a \u4e4b\u7c7b\u7684\u7528 PHP \u8bed\u8a00\u7684\uff0cPHP \u6837\u4f8b\u5c31\u5199\u7684\u975e &#8230; <a title=\"Google Api \u5bf9 PHP \u5f00\u53d1\u8005\u4e0d\u53cb\u597d\" class=\"read-more\" href=\"https:\/\/qishiya.com\/?p=1665\" aria-label=\"\u66f4\u591a Google Api \u5bf9 PHP \u5f00\u53d1\u8005\u4e0d\u53cb\u597d\">Read more<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"templates\/template-full-width.php","format":"standard","meta":{"footnotes":""},"categories":[214],"tags":[],"class_list":["post-1665","post","type-post","status-publish","format-standard","hentry","category-google"],"_links":{"self":[{"href":"https:\/\/qishiya.com\/index.php?rest_route=\/wp\/v2\/posts\/1665","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/qishiya.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/qishiya.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/qishiya.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/qishiya.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1665"}],"version-history":[{"count":0,"href":"https:\/\/qishiya.com\/index.php?rest_route=\/wp\/v2\/posts\/1665\/revisions"}],"wp:attachment":[{"href":"https:\/\/qishiya.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1665"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/qishiya.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1665"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/qishiya.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1665"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}