下载json文件后,我使用google.oauth2.service_account创建了一个credentials对象,但我不知道如何连接到该服务并开始创建应用程序接口请求。
from google.oauth2 import service_account
credentials = service_account.Credentials.from_service_account_file(
"path_to_json",
scopes=["https://www.googleapis.com/auth/cloud-platform"],
)https://stackoverflow.com/questions/62392046
复制相似问题