使用 service_account_file 找不到电子表格

Nik*_*kko 5 python pygsheets

您好,我计划部署一个可以记录到电子表格的应用程序。我使用了PyGSheets

我得到加薪。

raise SpreadsheetNotFound('Could not find a spreadsheet with title %s.' % title)
pygsheets.exceptions.SpreadsheetNotFound: Could not find a spreadsheet with title RSSI Spreadsheet.
Run Code Online (Sandbox Code Playgroud)

在我使用 service_account_file 进行授权之后

gc = pygsheets.authorize(service_account_file='something.json')
Run Code Online (Sandbox Code Playgroud)

但它适用于

gc = pygsheets.authorize(client_secret='client_secret_something.json')
Run Code Online (Sandbox Code Playgroud)

我想使用 service_account_file 以便它能够通过授权过程。