小编Dmi*_*riy的帖子

如何通过 API 密钥登录 Google Drive

我按照文档中的描述进行操作:

#google key
API_key = "xxxxx"
#creating an instance of the class
drive_service = build('drive', 'v2', developerKey = API_key)
#get a list of child folder in
children = drive_service.children().list(folderId='yyyyyyy', **param).execute()
Run Code Online (Sandbox Code Playgroud)

一个错误:

发生错误:https://www.googleapis.com/drive/v2/files/yyyyyyy/children?alt=json&key=xxxxx 返回“需要登录”>

我究竟做错了什么?

python google-drive-api

5
推荐指数
2
解决办法
4947
查看次数

标签 统计

google-drive-api ×1

python ×1