設定 Google Drive API
去 google cloud console 上建一個專案
https://console.cloud.google.com/
接著在專案裡面搜尋 Google Drive API

接著啟用它

去憑證 (Credentials) 點選"+建立憑證" 然後,選擇 "服務帳戶"

設定完服務帳戶 ID 後可以在下方看到一組服務帳戶ID為首的email帳號去 google sheet 表單中,將該帳號加入共用名單當中