Google Drive API using PHP

光是安裝所需的Library就夠麻煩的,文件還很分散連來連去的。下面是我整理的一些步驟

https://developers.google.com/drive/v3/web/quickstart/php
  1.  Turn on the Drive API 建立憑證於Google Cloud Platform中 https://developers.google.com
  2.  Install the Google Client Library From PHP Composer管理軟體
    1. https://developers.google.com/api-client-library/php/start/installation
      1. 建立一個composer.json檔,透過PHP Composer安裝所需Library時需要
    2. https://github.com/google/google-api-php-client#download-the-release
      1. PHP Composer github裡有一些安裝說明,我的整理如下方
    3. 安裝PHP Composer並安裝Library
      1. https://getcomposer.org
      2. https://getcomposer.org/download/
      3. https://getcomposer.org/doc/00-intro.md
      4. 移動composer.phar檔案並安裝Library
      5. 工作目錄最後會多出vendor資料夾,即安裝成功,程序完成
  3. 引入Library至自已的程式碼



0 comments:

Post a Comment

Note: Only a member of this blog may post a comment.