<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Google Cloud Platform &#8211; 記下來</title>
	<atom:link href="https://noter.tw/tag/google-cloud-platform/feed/" rel="self" type="application/rss+xml" />
	<link>https://noter.tw</link>
	<description>一路上踩到的坑、遇到的問題，一點一滴記下來，希望能幫助到需要的人~</description>
	<lastBuildDate>Fri, 15 Jul 2022 05:42:22 +0000</lastBuildDate>
	<language>zh-TW</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.6.3</generator>

<image>
	<url>https://noter.tw/wp-content/uploads/cropped-old-1130742_1920-1-32x32.jpg</url>
	<title>Google Cloud Platform &#8211; 記下來</title>
	<link>https://noter.tw</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>PHP Client 操作 Google APIs (1) 開啟與測試 API</title>
		<link>https://noter.tw/8940/google-apis-1-api-explorer/</link>
					<comments>https://noter.tw/8940/google-apis-1-api-explorer/#respond</comments>
		
		<dc:creator><![CDATA[黃小蛙]]></dc:creator>
		<pubDate>Fri, 16 Jul 2021 06:07:47 +0000</pubDate>
				<category><![CDATA[其他]]></category>
		<category><![CDATA[技巧分享]]></category>
		<category><![CDATA[技術相關]]></category>
		<category><![CDATA[程式開發]]></category>
		<category><![CDATA[分享]]></category>
		<category><![CDATA[記下來]]></category>
		<category><![CDATA[Google APIs]]></category>
		<category><![CDATA[Google 服務]]></category>
		<category><![CDATA[API Console]]></category>
		<category><![CDATA[Google Search Console API]]></category>
		<category><![CDATA[Try this API]]></category>
		<category><![CDATA[教學]]></category>
		<category><![CDATA[Google Cloud Platform]]></category>
		<category><![CDATA[Enable Google API]]></category>
		<guid isPermaLink="false">https://noter.tw/?p=8940</guid>

					<description><![CDATA[<p>應該很多人不知不覺中身邊就充滿了 Google 服務吧！舉凡是 Gmail、Google Maps、Google 雲端硬碟、Google 表單、Google 試算表、Google 文件 &#8230;&#46;&#46;&#46;</p>
<p>這篇文章 <a rel="nofollow" href="https://noter.tw/8940/google-apis-1-api-explorer/" data-wpel-link="internal">PHP Client 操作 Google APIs (1) 開啟與測試 API</a> 最早出現於 <a rel="nofollow" href="https://noter.tw" data-wpel-link="internal">記下來</a>。</p>
]]></description>
										<content:encoded><![CDATA[
<p>應該很多人不知不覺中身邊就充滿了 <a href="https://www.google.com.tw" target="_blank" rel="noreferrer noopener nofollow external" data-wpel-link="external" class="wpel-icon-right">Google<span class="wpel-icon wpel-image wpel-icon-6"></span></a> 服務吧！舉凡是 Gmail、Google Maps、Google 雲端硬碟、Google 表單、Google 試算表、Google 文件 &#8230; 等，這些服務除了透過對應的軟體或網頁使用外，Google 其實也提供了很多 API 服務，通稱 Google APIs ，讓使用者可以透過這些 API 來打造自己的 Google 服務。</p>



<span id="more-8940"></span>



<p>可能有很多人不懂 Google 提供的 APIs 能做什麼，以及有哪些 Google APIs，只要到  <a href="https://console.cloud.google.com/apis/library" target="_blank" rel="noreferrer noopener nofollow external" data-wpel-link="external" class="wpel-icon-right">Google Cloud Platform<span class="wpel-icon wpel-image wpel-icon-6"></span></a> 就可以看到 Google 提供的所有 API，所有你想得到的 Google 服務，幾乎都有對應開放的 API，差別在於每個 API 使用的次數跟頻率有所限制，還有另一個是 Google 開放的 API 裡面「並不會」接露所有功能。</p>



<p>舉個 Google Maps 的例子，使用 Google Maps 時除了地圖、店家資訊及使用者評論等等，中間還有一個熱門時段，讓使用者可以清楚知道哪個時段會比較多人，就可以避開熱門時段，挑個比較少人的時間去，好友當時就是因為 Google Maps API 沒有提供這個功能，因此小蛙才幫忙用爬蟲的方式解決這個問題。</p>



<div class="wp-block-image"><figure class="aligncenter size-large"><img decoding="async" src="https://lh3.googleusercontent.com/pw/AM-JKLWL_oDuen_qBzMNbYdZK5dhO7gPNmPDQkcPM0YOc_46CTNvh5cV6oVjYGXRHD7ekPEe1Lw5OmF94ZQQqDYMvSJxaujLwDnv92xvapzUX-BPmA4-8Louw_SVq-JArilQ06Rd6kKTpTX_xAFOxr4WdrajSQ=w407-h208-no?authuser=3" alt="Google Maps 熱門時段" title="PHP Client 操作 Google APIs (1) 開啟與測試 API"></figure></div>



<p>連上 Google Cloud Platform 可以看到很多各式各樣你想得到或想不到的服務</p>



<div class="wp-block-image"><figure class="aligncenter size-large"><img decoding="async" src="https://lh3.googleusercontent.com/pw/AM-JKLXUsdR4ePOskw_zEHJYvimSQypoWYO6SsQTD6GCfBn6TOnBp50Mu9kpk1sQsZjWsoek5gK97lV6STAFv6rbfXUxj0MX5odaaPe7FbgmLnK2DwaRwRa_FtH9SCpU4vzF0ngk26UUXoUV6b_iO_-QKmSmlA=w1236-h850-no?authuser=3" alt="Google Cloud Platform APIs" title="PHP Client 操作 Google APIs (1) 開啟與測試 API"></figure></div>



<h2 class="para wp-block-heading">開啟 Google APIs</h2>



<p>小蛙這系列都會用 Google Search Console 來當作範例，其他 API 原理基本上都差不多，只是呼叫的方式跟屬性設定有所不同，開始吧！</p>



<p>首先連到 <a href="https://console.cloud.google.com/apis/library" target="_blank" rel="noreferrer noopener nofollow external" data-wpel-link="external" class="wpel-icon-right">Google Cloud Platform<span class="wpel-icon wpel-image wpel-icon-6"></span></a> 從上方(1)選取一個要使用 API 的專案(2)，如果沒有專案的話可以建一個新的(3)</p>



<div class="wp-block-image"><figure class="aligncenter size-large"><img decoding="async" src="https://lh3.googleusercontent.com/pw/AM-JKLWFT6CzR0i2Y5RvptdJooiHeuWYJLa7EbiOyChF7LY63w0QzMae8BYIKyPwP5Tcxn1ILM4PUPjALTw0CZuZaQnTGKF8jxIdyKugcy5svmcP6WmWXXyBjBGgOaBqAgPysbu_djST_i4EzwLzx6wdwsbdDg=w762-h377-no?authuser=3" alt="Google Cloud Platform Select a project" title="PHP Client 操作 Google APIs (1) 開啟與測試 API"></figure></div>



<p>搜尋要開啟的 API (1)，點進去 (2)</p>



<div class="wp-block-image"><figure class="aligncenter size-large"><img decoding="async" src="https://lh3.googleusercontent.com/pw/AM-JKLW4Vne9XTUwgclQcPfh-XHpx00_pbkYywARPO_gNv-EVd2KrabcLVd0RdBz7rJjHp3oCkqgdNWZFvs352bKRPaiP0Oy4flXRGspXFdyalenpxAUT5VfDVvkAiXvtZ7a8PxYwwKL4FBkFhg_kb1TDqh3Hg=w919-h278-no?authuser=3" alt="Google Cloud Platform Keyword Search" title="PHP Client 操作 Google APIs (1) 開啟與測試 API"></figure></div>



<p>點上面的 Enable 就可以開啟該 API 了，下面有一些 API 說明可以看看</p>



<div class="wp-block-image"><figure class="aligncenter size-large"><img decoding="async" src="https://lh3.googleusercontent.com/pw/AM-JKLWi6McQq0WSsUZC7MEdkczS6MDRqTsVFeOBaGMVp-5VmydFdyy5-gQ_0KE5xp8LhKKVRuojmN1nL2OrbVIcPdKOagGyeiTqhTc4wkFlVE512UfAvFPrbTLYFGXu8P0r9Zy11TNJ8CvTyqNw9X4Q56Y_qg=w623-h327-no?authuser=3" alt="Google Cloud Platform Enable Google Search Console API" title="PHP Client 操作 Google APIs (1) 開啟與測試 API"></figure></div>



<p>API 成功開啟後，左邊的 Credentials 可以設定 API 認證的部份，不過這裡小蛙到第三篇文章的時候才會提到</p>



<div class="wp-block-image"><figure class="aligncenter size-large"><img decoding="async" src="https://lh3.googleusercontent.com/pw/AM-JKLXOt8yYkjQHUScF-vTgRlnDwHy29kzvsUPc67IWmku0F-PJw8x6DenuKslF_-aXSdWuyyIMA7hRdHMby60lryZki-FUsn8weuVBjpE4cfOfPFjOuVL2rCIU7bFpVcAD18TLZQxjZOKeWx_wVr6ls4OYMg=w261-h272-no?authuser=3" alt="Google Cloud Platform Side Menu" title="PHP Client 操作 Google APIs (1) 開啟與測試 API"></figure></div>



<h2 class="para wp-block-heading">測試 API 說明</h2>



<p>回到剛剛啟動 Google Search Console API 的頁面，這次點選右邊 TRY THIS API</p>



<div class="wp-block-image"><figure class="aligncenter size-large"><img decoding="async" src="https://lh3.googleusercontent.com/pw/AM-JKLXx468noxoeQwCFdKEpcfnNexiK7agGdBvKk5AcjoYvG3ZBvCBAriIh_E2yLQ3VwFrjfXEX7Zct9erixYXxQaFRUk0C9JQvy1uRNIAlsexI8SuNvrVBkfOk1OxuYcPcmP7kEJhX-NZwzqR0d2bMLNgZXQ=w627-h314-no?authuser=3" alt="Google Cloud Platform TRY THIS API" title="PHP Client 操作 Google APIs (1) 開啟與測試 API"></figure></div>



<p>開出來的頁面是 Search Console URL Testing Tools API，不過小蛙這邊要用的不是這個 API，而是能取得 Google Search Console 裡面資料的 API，因此點選左上角 (1)</p>



<div class="wp-block-image"><figure class="aligncenter size-large"><img decoding="async" src="https://lh3.googleusercontent.com/pw/AM-JKLXV055sMST_O7FgfVpcCjl9ww6oiyueSOOn2mHoM0f9-hN6JHFnaEmpEaBvzWHJYG5oKIp2BnhCmtHUB7MCat4URiREEfSY563bVnknM-A6KtBl_Iox4O4yVVhq6wQ5W9-_hTs-ahuujZTCNnfuDHauCA=w958-h468-no?authuser=3" alt="Google Search Console APIs &gt; URL Testing Tools API (Beta)" title="PHP Client 操作 Google APIs (1) 開啟與測試 API"></figure></div>



<p>回到 Google Search Console APIs 首頁後進入 Search Console API</p>



<div class="wp-block-image"><figure class="aligncenter size-large"><img decoding="async" src="https://lh3.googleusercontent.com/pw/AM-JKLXlQmNV8QP7dfkg7b7EaLqAbcQCEb_V_svlc2FIWesq5oQ5tPrQ-qT57-BJgddhP59FtcFshozITznDW5GnJc4iHE3KIG7NgUkaVvN1HmqFwhBeoVDm01PBNcgiZ1s6MvciXfjjUDME7t704kMSWT7OkA=w931-h573-no?authuser=3" alt="Google Search Console APIs" title="PHP Client 操作 Google APIs (1) 開啟與測試 API"></figure></div>



<p>找到下面的 Try it in your browser</p>



<div class="wp-block-image"><figure class="aligncenter size-large"><img decoding="async" src="https://lh3.googleusercontent.com/pw/AM-JKLVMbYziFhx3dxR9F28UWx3wkZcDtQVnU14rkAAvySVGeMi2SYWSORxoKQMnfn3Tk1FTBeikKbnx3EptXdL3aV0O63oUIicb5md0O0_yST37E2gSzS99p_RchRGxak1URCTXXwv6LJCwx7UfYqIvkHN97A=w622-h449-no?authuser=3" alt="Try out the Google Search Console API" title="PHP Client 操作 Google APIs (1) 開啟與測試 API"></figure></div>



<p>接著隨便點一個 api 功能</p>



<div class="wp-block-image"><figure class="aligncenter size-large"><img decoding="async" src="https://lh3.googleusercontent.com/pw/AM-JKLXDc68UJJAMl16ASnRzF8bAdvriWeX0bDNvdn08Ix_acpps0V_WZqNOWLuELUoSTT142lzEx4xMyRsOzfcFWvJb3mcLFJ3s-CwPcusGSI_L_-1HsfosX2Fuc8HUJmKEcG_S3kzHaGxsdc3pXniJ4YhDdg=w942-h602-no?authuser=3" alt="Google Search Console APIs &gt; query" title="PHP Client 操作 Google APIs (1) 開啟與測試 API"></figure></div>



<p>右邊會開啟一個側欄，這邊就是 Google API 的測試工具了，點選右上角的方框 (1) 可將螢幕放大顯示更多資訊</p>



<div class="wp-block-image"><figure class="aligncenter size-large"><img decoding="async" src="https://lh3.googleusercontent.com/pw/AM-JKLXUAKERyhTBWcoSSDmfbzvN4NI5IyDm8Jmr4k9d7Xt6UKiNxcpH8DIHCLa2GTvUrI7ysY7btQVxiMNryzY9r0hQY3vgRCMn9AA1gzB484MlYDFPwIbo0LEbtSjLoM7a_L6U4b7G4eMaYcXtN0375WA27g=w399-h811-no?authuser=3" alt="Google Search Console API &gt; Try this API 1" title="PHP Client 操作 Google APIs (1) 開啟與測試 API"></figure></div>



<p>Google Search Console 原本就是以「網站」為目標，因此必填欄位是在 Search Console 裡面的網址 (1)，Request body 的部份填入查詢的參數 (2)，輸入完成後點選 EXECUTE 執行 (3)，下圖 (4) 的地方是真正發送出的 request</p>



<div class="wp-block-image"><figure class="aligncenter size-large"><img decoding="async" src="https://lh3.googleusercontent.com/pw/AM-JKLXfwzWrEja8fKmnA0PPyyLqnv0hqZIswmWbV97eqVRpX7fAk4vHt1JQBIu_i_3jIown7IT0Jr7P56sYOVnAk4yY7oEbq8OA1nFGdSc419FBdiu8gXA8DwggmMlcMlFS9nMJ28SOj5zH_OPzAUp-FllncQ=w1150-h697-no?authuser=3" alt="Google Search Console API &gt; Try this API 2" title="PHP Client 操作 Google APIs (1) 開啟與測試 API"></figure></div>



<h2 class="para wp-block-heading">使用測試 API</h2>



<p>小蛙用記下來 https://noter.tw/ 測試一下 (1)，填入一些必要的參數 (2) 取得 2021-05-01 ~ 2021-07-01 區間的資料，只要回傳前 10 筆就好，點選 (3) 的驚嘆號會顯示有哪些屬性可以設定，確定沒問題後 EXECUTE 送出吧！注意：這邊的 siteUrl 一定要是自己的 Search Console 原本就有的資源才可以，也就是說不能去查別人的，不然就太恐怖了！</p>



<div class="wp-block-image"><figure class="aligncenter size-large"><img decoding="async" src="https://lh3.googleusercontent.com/pw/AM-JKLXxhOOd5fA43lv7nABBi3L9YJ0TMd1_RH-6LG6nHEuiVKZvXEIYlEAro-ZsxEmcdprhPEv1131GnKUla5crI-SUTM1bZhSiEvoCdKkZODHyzCo6QI9CkQmxU_jrnVQOP82lhdS9e4XUDIltV50aDK4sNQ=w456-h734-no?authuser=3" alt="Google Search Console API &gt; Try this API 3" title="PHP Client 操作 Google APIs (1) 開啟與測試 API"></figure></div>



<p>點了 EXECUTE 後瀏覽器跳出登入畫面，有些可以透過 API Key 來使用，有些則是必須透過 OAuth 2.0 才可以使用，選擇一個帳戶來使用吧～</p>



<div class="wp-block-image"><figure class="aligncenter size-large is-resized"><img fetchpriority="high" decoding="async" src="https://lh3.googleusercontent.com/pw/AM-JKLViqpex5Vq1tiC-5zHF84HkfewOulCuvoms8WvDbmNC4WNlWfxr_sW0PPedt4Mu8xhel_4oidPPm9R2hXS72UjvzhglZyQkLW6Bxwets6MXnrEZDseuzGfqeJGoHbzMTB8bGlqWvCzMQrJUotyxb5P4Fg=w601-h660-no?authuser=3" alt="SSO Login" width="451" height="495" title="PHP Client 操作 Google APIs (1) 開啟與測試 API"></figure></div>



<p>執行成功後，右上角會產生實際送出的 API</p>



<div class="wp-block-image"><figure class="aligncenter size-large"><img decoding="async" src="https://lh3.googleusercontent.com/pw/AM-JKLWo34bRGyi15XFeIn6p1_egFpEDrUG3ikfHlhF965Ueu3yLUlrIWZ9b-wIeHxmnBBs8D_BAM0csiOvvRG7SNF_3h5bUP7ASDDHrayL9UipS_4SBTUCTqxLyOg9gVWWrxdSTnlZeLmaZQ9vv7OZBoQvhHg=w669-h144-no?authuser=3" alt="Google Search Console API &gt; Try this API curl" title="PHP Client 操作 Google APIs (1) 開啟與測試 API"></figure></div>



<p>右下角則是顯示回傳結果，可以看見在這區間被點擊的次數為 46,812 次，搜尋曝光有 838,324 次 &#8230; 等</p>



<div class="wp-block-image"><figure class="aligncenter size-large"><img decoding="async" src="https://lh3.googleusercontent.com/pw/AM-JKLWxy3xjsu-hb7cDZQIT8Rl9UDH1sK4KH2pHha0SQZJ2j-Gx0hoH17yjA9IcrgZ781Ni2TmIRYxVhQB6vCXA1o_hTPLtbz0NuoygsNvgDDE9UMYdddV9inyb_23hknSkRHRdPyjGaajrWZwL0Xi6lsXd-A=w305-h288-no?authuser=3" alt="Google Search Console API &gt; Try this API results 1" title="PHP Client 操作 Google APIs (1) 開啟與測試 API"></figure></div>



<p class="withcode">這看起來好像只能取到很基本的資料？不～來把參數做個調整，加上 <code>aggregationType</code> 及 <code>dimensions</code> 的設定回傳各個頁面的資訊～</p>



<div class="wp-block-image"><figure class="aligncenter size-large"><img decoding="async" src="https://lh3.googleusercontent.com/pw/AM-JKLXhpOjk2WH7VGQn7KoPm1_AHInljAqKgu7x02VM2i2Ub_LHWQI_IP_LKNDX7kaq5xR-txJd7KZCqXLkWgR-fCfdwbdgmI_m1A4qbNn5Ib3YaglDKf9ebSdK0kHabszrHEXwQUtwp3UEf0DE2fEqbJr1CQ=w425-h332-no?authuser=3" alt="Google Search Console API &gt; Request body" title="PHP Client 操作 Google APIs (1) 開啟與測試 API"></figure></div>



<p>查詢結果會根據區間內的點擊數排列，看看剛剛我們加的 dimensions 都在 keys 陣列裡面，包含搜尋字串、頁面、來源國家及日期</p>



<div class="wp-block-image"><figure class="aligncenter size-large"><img decoding="async" src="https://lh3.googleusercontent.com/pw/AM-JKLWDbjBcT2NFEMd4IepyzdVoo5dVJG04OrpMRY4NLTX9sAsLa6Gb1P4jEuTDIaN_F-7oUr0e08VRkmnCgbazYvQIOKJwnu3vfhJHV0TxZR72RbFvDXm54KEJVP0ZDCZKCzhDL324dX-m4w7sf23b5dtDaw=w437-h322-no?authuser=3" alt="Google Search Console API &gt; Try this API results 2" title="PHP Client 操作 Google APIs (1) 開啟與測試 API"></figure></div>



<p>Google Search Console API 啟用跟測試就到這邊，下一篇將繼續介紹環境設定部份。</p>



<p id="block-c58a739f-b4e1-42ae-8530-5e20da347253"><strong>Google 系列文章：</strong></p>



<ul class="wp-block-list" id="block-2b1f3c8f-95c7-4eff-8105-53dea9d75e5e"><li><a href="https://noter.tw/8940/google-apis-1-api-explorer/" data-wpel-link="internal">PHP Client 操作 Google APIs (1) 開啟與測試 API</a></li><li><a href="https://noter.tw/8944/google-apis-2-google-api-client-for-php/" data-wpel-link="internal">PHP Client 操作 Google APIs (2) 安裝 Google API Client for PHP</a></li><li><a href="https://noter.tw/8942/google-apis-3-service-account-credentials/" data-wpel-link="internal">PHP Client 操作 Google APIs (3) Google APIs Credentials 介紹</a></li><li><a href="https://noter.tw/9035/google-apis-4-google-search-console-apis/" data-wpel-link="internal">PHP Client 操作 Google APIs (4) 使用 Google Search Console APIs</a></li><li><a href="https://noter.tw/8604/google-formranger/" target="_blank" rel="noreferrer noopener" data-wpel-link="internal">Google 表單應用：設定選項次數上限</a></li><li><a href="https://noter.tw/9049/copy-a-google-form/" target="_blank" rel="noreferrer noopener" data-wpel-link="internal">複製 Google 表單 (Copy A Google Form)</a></li><li><a href="https://noter.tw/8358/google-adsense-tax-w8ben/" target="_blank" rel="noreferrer noopener" data-wpel-link="internal">Google Adsense: 向 Google 提交稅務資料 | 填寫 W-8BEN 稅務表單</a></li><li><a href="https://noter.tw/4946/google-%e9%9b%b2%e7%ab%af%e5%a4%96%e5%b8%b6%e6%9c%8d%e5%8b%99-takeout%ef%bc%9a%e8%bc%95%e9%ac%86%e6%89%93%e5%8c%85%e9%9b%b2%e7%ab%af%e7%a1%ac%e7%a2%9f%e3%80%81%e7%9b%b8%e7%b0%bf-%e7%ad%89/" target="_blank" rel="noreferrer noopener" data-wpel-link="internal">Google 雲端外帶服務 (Takeout)：輕鬆打包雲端硬碟、相簿 … 等資料</a></li><li><a href="https://noter.tw/4394/google-%e7%9b%b8%e7%b0%bf%e5%8f%96%e5%be%97%e7%9c%9f%e5%af%a6%e5%9c%96%e7%89%87%e4%bd%8d%e7%bd%ae%ef%bc%88%e6%8f%92%e5%85%a5%e5%9c%96%e7%89%87%e5%88%b0%e6%96%87%e7%ab%a0%ef%bc%89/" target="_blank" rel="noreferrer noopener" data-wpel-link="internal">Google 相簿取得真實圖片位置（插入圖片到文章）</a></li><li><a href="https://noter.tw/4267/gdirve-%e8%ae%93%e4%bd%a0%e5%9c%a8-linux-%e6%96%87%e5%ad%97%e4%bb%8b%e9%9d%a2%e4%b9%9f%e8%83%bd%e5%a5%bd%e5%a5%bd%e4%bd%bf%e7%94%a8-google-drive/" target="_blank" rel="noreferrer noopener" data-wpel-link="internal">gdirve 讓你在 Linux 文字介面也能好好使用 Google Drive</a></li><li><a href="https://noter.tw/4302/microsoft-office-word-%e7%84%a1%e6%b3%95%e9%96%8b%e5%95%9f-google-drive-%e8%b6%85%e9%80%a3%e7%b5%90/" target="_blank" rel="noreferrer noopener" data-wpel-link="internal">Microsoft Office Word 無法開啟 Google Drive 超連結</a></li></ul>
<p>這篇文章 <a rel="nofollow" href="https://noter.tw/8940/google-apis-1-api-explorer/" data-wpel-link="internal">PHP Client 操作 Google APIs (1) 開啟與測試 API</a> 最早出現於 <a rel="nofollow" href="https://noter.tw" data-wpel-link="internal">記下來</a>。</p>
]]></content:encoded>
					
					<wfw:commentRss>https://noter.tw/8940/google-apis-1-api-explorer/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>PHP Client 操作 Google APIs (2) 安裝 Google API Client for PHP</title>
		<link>https://noter.tw/8944/google-apis-2-google-api-client-for-php/</link>
					<comments>https://noter.tw/8944/google-apis-2-google-api-client-for-php/#respond</comments>
		
		<dc:creator><![CDATA[黃小蛙]]></dc:creator>
		<pubDate>Tue, 13 Jul 2021 07:40:57 +0000</pubDate>
				<category><![CDATA[程式開發]]></category>
		<category><![CDATA[技巧分享]]></category>
		<category><![CDATA[技術相關]]></category>
		<category><![CDATA[其他]]></category>
		<category><![CDATA[composer]]></category>
		<category><![CDATA[安裝]]></category>
		<category><![CDATA[分享]]></category>
		<category><![CDATA[記下來]]></category>
		<category><![CDATA[Google APIs]]></category>
		<category><![CDATA[Google Search Console API]]></category>
		<category><![CDATA[Google Cloud Platform]]></category>
		<category><![CDATA[Google Client]]></category>
		<category><![CDATA[教學]]></category>
		<category><![CDATA[Google APIs Client Library for PHP]]></category>
		<guid isPermaLink="false">https://noter.tw/?p=8944</guid>

					<description><![CDATA[<p>Google APIs 開啟的方法可參考上一篇文章：PHP Client 操作 Google APIs (1) 開啟與測試 API，這篇文章繼續記錄使用 Google API Client 來操作 G&#46;&#46;&#46;</p>
<p>這篇文章 <a rel="nofollow" href="https://noter.tw/8944/google-apis-2-google-api-client-for-php/" data-wpel-link="internal">PHP Client 操作 Google APIs (2) 安裝 Google API Client for PHP</a> 最早出現於 <a rel="nofollow" href="https://noter.tw" data-wpel-link="internal">記下來</a>。</p>
]]></description>
										<content:encoded><![CDATA[
<p>Google APIs 開啟的方法可參考上一篇文章：<a href="https://noter.tw/8940/google-apis-1/" data-wpel-link="internal">PHP Client 操作 Google APIs (1) 開啟與測試 API</a>，這篇文章繼續記錄使用 Google API Client 來操作 Google Search Console APIs。</p>



<span id="more-8944"></span>



<p>上一篇文章我們示範了怎麼使用 Google 提供的 API 測試工具，透過這些工具產生相關 REST 指令，同時 Google 也提供 Java 及 Python 版本的使用範例，只要點進 <a href="https://developers.google.com/webmaster-tools/search-console-api-original/v3/quickstart/quickstart-python" target="_blank" rel="noreferrer noopener nofollow external" data-wpel-link="external" class="wpel-icon-right">Google Search Console APIs<span class="wpel-icon wpel-image wpel-icon-6"></span></a> 就可以看到。</p>



<p>但是小蛙今天要使用的不是 Java 及 Python，而是 PHP 版本的 Client (beta)，只要點進 <a href="https://developers.google.com/webmaster-tools/search-console-api-original/v3/libraries#php" target="_blank" rel="noreferrer noopener nofollow external" data-wpel-link="external" class="wpel-icon-right">Install Client Libraries<span class="wpel-icon wpel-image wpel-icon-6"></span></a> 拉到下面可以看到各種版本的 Client，將頁籤切換到 PHP，或是其它自己擅長的語言～點選 Get the latest&nbsp;<a href="https://github.com/google/google-api-php-client" target="_blank" rel="noreferrer noopener nofollow external" data-wpel-link="external" class="wpel-icon-right">Google Search Console API client library for PHP (beta)<span class="wpel-icon wpel-image wpel-icon-6"></span></a></p>



<div class="wp-block-image"><figure class="aligncenter size-large"><img decoding="async" src="https://lh3.googleusercontent.com/pw/AM-JKLX9CBG9wuYorqrlOuCWgAYOQlWD82BHOBZepvZ2VXxMkut7YR6XT8G_1yJcbLGiPo5QQ7pMEOgs2dPkAVgPNkSQ4SBFdWRI6pPB9nJnwH2beMtZGnff-N_Hg24WyUPHNUVk_YaAX0ia77X13Okfa1xW4w=w877-h158-no?authuser=3" alt="Google API Client PHP " title="PHP Client 操作 Google APIs (2) 安裝 Google API Client for PHP"></figure></div>



<p>接著開啟 Github 頁面，PHP 版本需在 5.6.0 以上才可以使用，並且需要透過 composer 安裝，沒有 composer 的話可參考<a href="https://getcomposer.org/doc/00-intro.md" target="_blank" rel="noreferrer noopener nofollow external" data-wpel-link="external" class="wpel-icon-right">這邊<span class="wpel-icon wpel-image wpel-icon-6"></span></a>。安裝好後使用以下指令安裝</p>



<pre class="wp-block-preformatted withcode">composer require google/apiclient:^2.10</pre>



<p>安裝完 PHP Client 後，在要使用 Google APIs 的 PHP 最上面加上</p>



<pre class="wp-block-preformatted withcode">require_once '/path/to/your-project/vendor/autoload.php';</pre>



<p>就可以載入 Google API 的相關工具了，如果沒有或真的不想裝 composer 的話，其實也有提供直接下載的版本，只要到 <a href="https://github.com/googleapis/google-api-php-client/releases" target="_blank" rel="noreferrer noopener nofollow external" data-wpel-link="external" class="wpel-icon-right">這邊<span class="wpel-icon wpel-image wpel-icon-6"></span></a> 去下載適合的版本，解壓縮後同樣在要使用 Google APIs 的 PHP 加入上面 require_once (注意路徑正確性) 就可以使用 Google API 了。</p>



<p>接著建一個 PHP 檔案，新增一個 Google_Client() 物件出來，如果下載或設定正確的話，畫面上應該空白不會噴任何錯誤</p>



<pre class="wp-block-preformatted withcode">&lt;?php
 ini_set('display_errors', '1');
 error_reporting(E_ALL);
 // 換成自己的實際路徑
 require_once '../googleapiclient/vendor/autoload.php';
 $client = new Google_Client();
?&gt;</pre>



<p>如果出現下面這種錯誤，可能是沒安裝正確或是路徑指定錯誤，再檢查看看是哪裡有問題。</p>



<pre class="wp-block-preformatted withcode"><strong>Fatal error</strong>: Uncaught Error: Class 'Google_Client' not found in /var/www/xxx.php:6 Stack trace: #0 {main} thrown in&nbsp;<strong>/var/www/test/xxx.php</strong>&nbsp;on line&nbsp;<strong>6</strong></pre>



<p>這篇文章比較短，只著重在 PHP 版本的安裝，下一篇文章再繼續介紹怎麼使用 OAuth 登入並查詢 Google Search Console APIs 的相關資料！</p>



<p id="block-c58a739f-b4e1-42ae-8530-5e20da347253"><strong>Google 系列文章：</strong></p>



<ul class="wp-block-list" id="block-2b1f3c8f-95c7-4eff-8105-53dea9d75e5e"><li><a href="https://noter.tw/8940/google-apis-1-api-explorer/" data-wpel-link="internal">PHP Client 操作 Google APIs (1) 開啟與測試 API</a></li><li><a href="https://noter.tw/8944/google-apis-2-google-api-client-for-php/" data-wpel-link="internal">PHP Client 操作 Google APIs (2) 安裝 Google API Client for PHP</a></li><li><a href="https://noter.tw/8942/google-apis-3-service-account-credentials/" data-wpel-link="internal">PHP Client 操作 Google APIs (3) Google APIs Credentials 介紹</a></li><li><a href="https://noter.tw/9035/google-apis-4-google-search-console-apis/" data-wpel-link="internal">PHP Client 操作 Google APIs (4) 使用 Google Search Console APIs</a></li><li><a href="https://noter.tw/8604/google-formranger/" target="_blank" rel="noreferrer noopener" data-wpel-link="internal">Google 表單應用：設定選項次數上限</a></li><li><a href="https://noter.tw/9049/copy-a-google-form/" target="_blank" rel="noreferrer noopener" data-wpel-link="internal">複製 Google 表單 (Copy A Google Form)</a></li><li><a href="https://noter.tw/8358/google-adsense-tax-w8ben/" target="_blank" rel="noreferrer noopener" data-wpel-link="internal">Google Adsense: 向 Google 提交稅務資料 | 填寫 W-8BEN 稅務表單</a></li><li><a href="https://noter.tw/4946/google-%e9%9b%b2%e7%ab%af%e5%a4%96%e5%b8%b6%e6%9c%8d%e5%8b%99-takeout%ef%bc%9a%e8%bc%95%e9%ac%86%e6%89%93%e5%8c%85%e9%9b%b2%e7%ab%af%e7%a1%ac%e7%a2%9f%e3%80%81%e7%9b%b8%e7%b0%bf-%e7%ad%89/" target="_blank" rel="noreferrer noopener" data-wpel-link="internal">Google 雲端外帶服務 (Takeout)：輕鬆打包雲端硬碟、相簿 … 等資料</a></li><li><a href="https://noter.tw/4394/google-%e7%9b%b8%e7%b0%bf%e5%8f%96%e5%be%97%e7%9c%9f%e5%af%a6%e5%9c%96%e7%89%87%e4%bd%8d%e7%bd%ae%ef%bc%88%e6%8f%92%e5%85%a5%e5%9c%96%e7%89%87%e5%88%b0%e6%96%87%e7%ab%a0%ef%bc%89/" target="_blank" rel="noreferrer noopener" data-wpel-link="internal">Google 相簿取得真實圖片位置（插入圖片到文章）</a></li><li><a href="https://noter.tw/4267/gdirve-%e8%ae%93%e4%bd%a0%e5%9c%a8-linux-%e6%96%87%e5%ad%97%e4%bb%8b%e9%9d%a2%e4%b9%9f%e8%83%bd%e5%a5%bd%e5%a5%bd%e4%bd%bf%e7%94%a8-google-drive/" target="_blank" rel="noreferrer noopener" data-wpel-link="internal">gdirve 讓你在 Linux 文字介面也能好好使用 Google Drive</a></li><li><a href="https://noter.tw/4302/microsoft-office-word-%e7%84%a1%e6%b3%95%e9%96%8b%e5%95%9f-google-drive-%e8%b6%85%e9%80%a3%e7%b5%90/" target="_blank" rel="noreferrer noopener" data-wpel-link="internal">Microsoft Office Word 無法開啟 Google Drive 超連結</a></li></ul>
<p>這篇文章 <a rel="nofollow" href="https://noter.tw/8944/google-apis-2-google-api-client-for-php/" data-wpel-link="internal">PHP Client 操作 Google APIs (2) 安裝 Google API Client for PHP</a> 最早出現於 <a rel="nofollow" href="https://noter.tw" data-wpel-link="internal">記下來</a>。</p>
]]></content:encoded>
					
					<wfw:commentRss>https://noter.tw/8944/google-apis-2-google-api-client-for-php/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>PHP Client 操作 Google APIs (4) 使用 Google Search Console APIs</title>
		<link>https://noter.tw/9035/google-apis-4-google-search-console-apis/</link>
					<comments>https://noter.tw/9035/google-apis-4-google-search-console-apis/#comments</comments>
		
		<dc:creator><![CDATA[黃小蛙]]></dc:creator>
		<pubDate>Tue, 13 Jul 2021 07:30:16 +0000</pubDate>
				<category><![CDATA[其他]]></category>
		<category><![CDATA[網頁後端]]></category>
		<category><![CDATA[技術相關]]></category>
		<category><![CDATA[開發]]></category>
		<category><![CDATA[教學]]></category>
		<category><![CDATA[分享]]></category>
		<category><![CDATA[記下來]]></category>
		<category><![CDATA[Google APIs]]></category>
		<category><![CDATA[Google Cloud Platform]]></category>
		<category><![CDATA[Goolge Search Console APIs]]></category>
		<guid isPermaLink="false">https://noter.tw/?p=9035</guid>

					<description><![CDATA[<p>這系列的最後一篇，原本以為已經寫完了，今天發現這篇躺在草稿裡 &#8230; 還不清楚怎麼回事的朋友可以看前面幾篇 PHP Client 操作 Google APIs (1) 開啟與測試 API 、 &#46;&#46;&#46;</p>
<p>這篇文章 <a rel="nofollow" href="https://noter.tw/9035/google-apis-4-google-search-console-apis/" data-wpel-link="internal">PHP Client 操作 Google APIs (4) 使用 Google Search Console APIs</a> 最早出現於 <a rel="nofollow" href="https://noter.tw" data-wpel-link="internal">記下來</a>。</p>
]]></description>
										<content:encoded><![CDATA[
<p>這系列的最後一篇，原本以為已經寫完了，今天發現這篇躺在草稿裡 &#8230; 還不清楚怎麼回事的朋友可以看前面幾篇 <a style="font-size: revert;" rel="noreferrer noopener" href="https://noter.tw/8940/google-apis-1/" target="_blank" data-wpel-link="internal">PHP Client 操作 Google APIs (1) 開啟與測試 API</a> 、 <a style="font-size: revert;" rel="noreferrer noopener" href="https://noter.tw/8944/google-apis-2/" target="_blank" data-wpel-link="internal">PHP Client 操作 Google APIs (2) 安裝 Google API Client for PHP</a> 及 <a href="https://noter.tw/8942/google-apis-3-service-account-credentials/" target="_blank" rel="noreferrer noopener" data-wpel-link="internal">PHP Client 操作 Google APIs (3) Google APIs Credentials 介紹</a>，這篇記錄如何使用 Google Search Console APIs。 </p>



<span id="more-9035"></span>



<p>我們在前幾篇裡面瞭解了 Google APIs、安裝 Client for PHP 以及申請了 Google APIs Credentials 裡的 Service Account 並下載了 JSON (一定要好好保存，遺失了只能刪除再產生一次，沒辦法再次下載喔)，開始使用！</p>



<h2 class="para wp-block-heading">Google APIs 大致流程</h2>



<p>使用 Google APIs 大致上的流程都差不多</p>



<ul class="my-li bg-darkblue wp-block-list"><li>載入 Google APIs Client for PHP (或其他語言版本)</li><li>加入 Service Account</li><li>建立並初始化物件</li><li>設定篩選條件</li><li>取得並解析結果</li></ul>



<p>只要把握這幾個原則，之後若要使用 Google APIs 就不會再霧沙沙了 (但 API 還是要查，每個 API 的 Scope 跟條件設定上會有很大的不同)</p>



<h2 class="para wp-block-heading">載入 Google APIs Client for PHP</h2>



<p>這個在前面  <a style="font-size: revert;" rel="noreferrer noopener" href="https://noter.tw/8944/google-apis-2/" target="_blank" data-wpel-link="internal">PHP Client 操作 Google APIs (2) 安裝 Google API Client for PHP</a>  的時候已經講過了，在程式碼裡面很簡單，開頭放上這行就可以了，為了更方便 debug，可以多設定兩行條件，只要使用上出現錯誤，就會直接在網頁上呈現</p>



<pre class="wp-block-preformatted withcode">// 顯示錯誤
ini_set('display_errors', '1');
// 所有錯誤都顯示
error_reporting(E_ALL);
// 載入 Google Client
require_once '../googleapiclient/vendor/autoload.php';</pre>



<h2 class="para wp-block-heading">加入 Service Account</h2>



<p>小蛙前面提到這次要做的事情是讓程式不經人工自動執行，而 Search Console 能使用的方式只有 OAuth 與 Service Account (忘記差別的這邊請 <a href="https://noter.tw/8942/google-apis-3-service-account-credentials/" target="_blank" rel="noreferrer noopener" data-wpel-link="internal">PHP Client 操作 Google APIs (3) Google APIs Credentials 介紹</a>)，要不需人工介入只有 Service Account 了，而要讓 Service Account 存取 Search Console 資料的話，就必須將該帳號加入 Search Console 裡面囉！</p>



<p>首先進入 Search Console 要使用的資源，左邊選單下面找到「設定」</p>


<div class="wp-block-image">
<figure class="aligncenter size-large"><img decoding="async" src="https://lh3.googleusercontent.com/pw/AM-JKLXzIBu7ISSOmPScFy7qVA96IJdZN6hn_2sC8u8CAQo6ilW2TSsoE7VnZcq8sj1gRGhJqQ6wc_wjaC6MNwP3aY-rbsd89loU6C4h5Abb520EUYBS_0TD5NMys3eYYxweQuQwqvchEjMtFMJr9_65SCb-QA=w326-h243-no?authuser=2" alt="AM JKLXzIBu7ISSOmPScFy7qVA96IJdZN6hn 2sC8u8CAQo6ilW2TSsoE7VnZcq8sj1gRGhJqQ6wc wjaC6MNwP3aY rbsd89loU6C4h5Abb520EUYBS 0TD5NMys3eYYxweQuQwqvchEjMtFMJr9 65SCb QA=w326 h243 no?authuser=2 PHP Client 操作 Google APIs (4) 使用 Google Search Console APIs" title="PHP Client 操作 Google APIs (4) 使用 Google Search Console APIs"></figure></div>


<p>點擊「使用者與權限」</p>


<div class="wp-block-image">
<figure class="aligncenter size-large is-resized"><img decoding="async" src="https://lh3.googleusercontent.com/pw/AM-JKLXZUyX8xf-BHak-20EBkiO2TFTuTXL_INR2QUGFYk7pHLNsIPtwfApwqJ1xcShRkvqj2low9Iuh4ksHN79DSkUqUjylMiyEd1MMK0DO5P2U1X-ZfMa9lKLLv8EyrMp1-j3pXSYrSGxt8gh5MKlyxeN7ww=w817-h394-no?authuser=2" alt="AM JKLXZUyX8xf BHak 20EBkiO2TFTuTXL INR2QUGFYk7pHLNsIPtwfApwqJ1xcShRkvqj2low9Iuh4ksHN79DSkUqUjylMiyEd1MMK0DO5P2U1X ZfMa9lKLLv8EyrMp1 j3pXSYrSGxt8gh5MKlyxeN7ww=w817 h394 no?authuser=2 PHP Client 操作 Google APIs (4) 使用 Google Search Console APIs" width="613" height="296" title="PHP Client 操作 Google APIs (4) 使用 Google Search Console APIs"></figure></div>


<p>點擊「新增使用者」並把從 GCP Credentials 那邊得到的 Service Account 貼上，權限選擇「完整」</p>


<div class="wp-block-image">
<figure class="aligncenter size-large is-resized"><img decoding="async" src="https://lh3.googleusercontent.com/pw/AM-JKLXEF6Sy2MrLHsvzAKbOuqRzWdPB-kwXigP9LAgaaBdiHnlavX2vwEvWRLMW6NS4nJi_mkQlhcD0ldCVhN4KoVx_D_azli_64i9YbL1nDF7HEzeBvMSG5mS0gdHUv_YeADHYPcEgZqaWH6uKZFM4gwAj5A=w746-h385-no?authuser=2" alt="AM JKLXEF6Sy2MrLHsvzAKbOuqRzWdPB kwXigP9LAgaaBdiHnlavX2vwEvWRLMW6NS4nJi mkQlhcD0ldCVhN4KoVx D azli 64i9YbL1nDF7HEzeBvMSG5mS0gdHUv YeADHYPcEgZqaWH6uKZFM4gwAj5A=w746 h385 no?authuser=2 PHP Client 操作 Google APIs (4) 使用 Google Search Console APIs" width="560" height="289" title="PHP Client 操作 Google APIs (4) 使用 Google Search Console APIs"></figure></div>

<div class="wp-block-image">
<figure class="aligncenter size-large"><img decoding="async" src="https://lh3.googleusercontent.com/pw/AM-JKLVdteLUJJMU-tjYJzk3UQDQIhDk0n7Q36DgbhQKKbu3n57YYr2H1aPYTP0krgU5rBXxSGz8_z40ZmiJEOCaGJKCK-XhvCFhYdVza6Zs3z1Y2T5P7DAshqm-rDHu4jGLKaBkisrRs7fcjXUvlPo5Lh56mw=w1004-h385-no?authuser=2" alt="AM JKLVdteLUJJMU tjYJzk3UQDQIhDk0n7Q36DgbhQKKbu3n57YYr2H1aPYTP0krgU5rBXxSGz8 z40ZmiJEOCaGJKCK XhvCFhYdVza6Zs3z1Y2T5P7DAshqm rDHu4jGLKaBkisrRs7fcjXUvlPo5Lh56mw=w1004 h385 no?authuser=2 PHP Client 操作 Google APIs (4) 使用 Google Search Console APIs" title="PHP Client 操作 Google APIs (4) 使用 Google Search Console APIs"></figure></div>


<h2 class="para wp-block-heading">建立並初始化物件</h2>



<p>回到 PHP 的部份加入金鑰及設定 Scope</p>



<pre class="wp-block-preformatted withcode">// 設定金鑰
putenv('GOOGLE_APPLICATION_CREDENTIALS=存放金鑰的路徑/server_secrets.json');
session_start();

// 建立基本 Google Client 
$client = new Google_Client();
// 載入預設金鑰位置
$client-&gt;useApplicationDefaultCredentials();
// 設定 Scope
$client-&gt;addScope([Google_Service_Webmasters::WEBMASTERS_READONLY, Google_Service_Webmasters::WEBMASTERS]);
$client-&gt;setAccessType('offline');
// 建立基本 Google Service Webmasters 物件
$master = new Google_Service_Webmasters($client);</pre>



<h2 class="para wp-block-heading">設定篩選條件</h2>



<p>建立完要用的 Google Service Webmasters 物件之後，對！以前 Google Search Console 叫做 Google Webmaster，雖然我們說要操作 Search Console 但建立的物件跟設定的 Scope 可以看出都還是 Webmasters。</p>



<pre class="wp-block-preformatted withcode">$search = new Google_Service_Webmasters_SearchAnalyticsQueryRequest();
$search-&gt;setStartDate( '2021-07-06' );
$search-&gt;setEndDate( '2021-08-06' );
$search-&gt;setDimensions( ['QUERY'] );
$search-&gt;setAggregationType( 'BY_PROPERTY' );
$search-&gt;setRowLimit(10);</pre>



<p>至於有哪些條件或是要怎麼操作取得自己要的內容，就自己到 <a href="https://developers.google.com/webmaster-tools/search-console-api-original/v3/searchanalytics/query" target="_blank" rel="noreferrer noopener nofollow external" data-wpel-link="external" class="wpel-icon-right">API Explorer<span class="wpel-icon wpel-image wpel-icon-6"></span></a> 測試，或到 <a href="https://noter.tw/8940/google-apis-1/" target="_blank" rel="noreferrer noopener" data-wpel-link="internal">PHP Client 操作 Google APIs (1) 開啟與測試 API</a> 複習吧！</p>



<h2 class="para wp-block-heading">取得並解析結果</h2>



<p>最後把他們全部串起來～丟回的結果可以先用 print_r 印出來看看，或是直接到 <a href="https://developers.google.com/webmaster-tools/search-console-api-original/v3/searchanalytics/query" target="_blank" rel="noreferrer noopener nofollow external" data-wpel-link="external" class="wpel-icon-right">這邊<span class="wpel-icon wpel-image wpel-icon-6"></span></a> 看回傳的結果 ~</p>



<pre class="wp-block-preformatted withcode">$data = $master-&gt;searchanalytics-&gt;query('https://noter.tw/', $search);

$result = [];
$rows = $data-&gt;rows;
foreach ($rows as $row){
    // 剖析資料
}

</pre>



<p>到這邊基本上就大功告成了，上面的功能是取得網站上特定區間的關鍵字資訊 ~ 需要其他資料的話，釣竿已經在手了，就要靠自己囉！Good Luck ~ </p>



<p id="block-c58a739f-b4e1-42ae-8530-5e20da347253"><strong>Google 系列文章：</strong></p>



<ul class="wp-block-list" id="block-2b1f3c8f-95c7-4eff-8105-53dea9d75e5e"><li><a href="https://noter.tw/8940/google-apis-1-api-explorer/" data-wpel-link="internal">PHP Client 操作 Google APIs (1) 開啟與測試 API</a></li><li><a href="https://noter.tw/8944/google-apis-2-google-api-client-for-php/" data-wpel-link="internal">PHP Client 操作 Google APIs (2) 安裝 Google API Client for PHP</a></li><li><a href="https://noter.tw/8942/google-apis-3-service-account-credentials/" data-wpel-link="internal">PHP Client 操作 Google APIs (3) Google APIs Credentials 介紹</a></li><li><a href="https://noter.tw/9035/google-apis-4-google-search-console-apis/" data-wpel-link="internal">PHP Client 操作 Google APIs (4) 使用 Google Search Console APIs</a></li><li><a href="https://noter.tw/8604/google-formranger/" target="_blank" rel="noreferrer noopener" data-wpel-link="internal">Google 表單應用：設定選項次數上限</a></li><li><a href="https://noter.tw/9049/copy-a-google-form/" target="_blank" rel="noreferrer noopener" data-wpel-link="internal">複製 Google 表單 (Copy A Google Form)</a></li><li><a href="https://noter.tw/8358/google-adsense-tax-w8ben/" target="_blank" rel="noreferrer noopener" data-wpel-link="internal">Google Adsense: 向 Google 提交稅務資料 | 填寫 W-8BEN 稅務表單</a></li><li><a href="https://noter.tw/4946/google-%e9%9b%b2%e7%ab%af%e5%a4%96%e5%b8%b6%e6%9c%8d%e5%8b%99-takeout%ef%bc%9a%e8%bc%95%e9%ac%86%e6%89%93%e5%8c%85%e9%9b%b2%e7%ab%af%e7%a1%ac%e7%a2%9f%e3%80%81%e7%9b%b8%e7%b0%bf-%e7%ad%89/" target="_blank" rel="noreferrer noopener" data-wpel-link="internal">Google 雲端外帶服務 (Takeout)：輕鬆打包雲端硬碟、相簿 … 等資料</a></li><li><a href="https://noter.tw/4394/google-%e7%9b%b8%e7%b0%bf%e5%8f%96%e5%be%97%e7%9c%9f%e5%af%a6%e5%9c%96%e7%89%87%e4%bd%8d%e7%bd%ae%ef%bc%88%e6%8f%92%e5%85%a5%e5%9c%96%e7%89%87%e5%88%b0%e6%96%87%e7%ab%a0%ef%bc%89/" target="_blank" rel="noreferrer noopener" data-wpel-link="internal">Google 相簿取得真實圖片位置（插入圖片到文章）</a></li><li><a href="https://noter.tw/4267/gdirve-%e8%ae%93%e4%bd%a0%e5%9c%a8-linux-%e6%96%87%e5%ad%97%e4%bb%8b%e9%9d%a2%e4%b9%9f%e8%83%bd%e5%a5%bd%e5%a5%bd%e4%bd%bf%e7%94%a8-google-drive/" target="_blank" rel="noreferrer noopener" data-wpel-link="internal">gdirve 讓你在 Linux 文字介面也能好好使用 Google Drive</a></li><li><a href="https://noter.tw/4302/microsoft-office-word-%e7%84%a1%e6%b3%95%e9%96%8b%e5%95%9f-google-drive-%e8%b6%85%e9%80%a3%e7%b5%90/" target="_blank" rel="noreferrer noopener" data-wpel-link="internal">Microsoft Office Word 無法開啟 Google Drive 超連結</a></li></ul>
<p>這篇文章 <a rel="nofollow" href="https://noter.tw/9035/google-apis-4-google-search-console-apis/" data-wpel-link="internal">PHP Client 操作 Google APIs (4) 使用 Google Search Console APIs</a> 最早出現於 <a rel="nofollow" href="https://noter.tw" data-wpel-link="internal">記下來</a>。</p>
]]></content:encoded>
					
					<wfw:commentRss>https://noter.tw/9035/google-apis-4-google-search-console-apis/feed/</wfw:commentRss>
			<slash:comments>2</slash:comments>
		
		
			</item>
	</channel>
</rss>
