我有一个服务帐户,并希望与api共享它的凭据。我尝试过,但似乎不推荐import com.google.api.client.googleapis.auth.oauth2.GoogleCredential;。
应该是导入的替代方案吗?Sheets service = new Sheets.Builder(HTTP_TRANSPORT, JSON_FACTORY, getCredentials(HTTP_TRANSPORT))
我正在用PHP编写一个脚本,以自动化从数据库中获取数据并将其插入google工作表的过程。因为它将每隔15分钟运行一次,所以Oauth同意屏幕并不是最好的选择。是否有另一种选择,无需通过浏览器登录就可以获得写入工作表所需的授权?$client = new Google_Client();
$service = new Google_Service_Sheets($c
网址:https://docs.google.com/spreadsheets/d/e/2PACX-1vSz8Qs1gE_IYpzlkFkCXGcL_BqR8hZieWVi-rphN1gfrO3H4lDtVZs4kd0C3P8Y9lhsT1rhoB-Q_cP4/pubhtml import pandas as pd
data = pd.read_csv('https://docs.google.com/spreadsheets/d