已超出未经身份验证使用的 Google Drive API 错误每日限制 [英] Google Drive API Error Daily Limit for Unauthenticated Use Exceeded

本文介绍了已超出未经身份验证使用的 Google Drive API 错误每日限制的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在使用 Google API 时遇到错误.有权连接 Google 云端硬盘并添加新工作表并向其中插入数据.

Im getting error on using Google API. having right to connect with Google Drive and add new sheet and insert data into it.

它一直工作到昨天,但是当我今天运行应用程序时.我收到错误:

It was working till yesterday but when i run the application today. Im getting error :

在用户给定令牌并尝试访问 DRIVE API 以获取所有文件后出现错误

Error appears after users given token and tried to access the DRIVE API to get all the files

domain: "usageLimits"
extendedHelp: "https://code.google.com/apis/console"
message: "Daily Limit for Unauthenticated Use Exceeded. Continued use requires signup."
reason: "dailyLimitExceededUnreg"

我没有更改任何设置.以下 API 为我的应用程序访问令牌启用.我是否必须添加/启用更多 API 才能使其工作.

I have not changed any settings. Following API are enables for my application access token. Do i have to add / enable more API to make it work.

推荐答案

问题出在获取访问令牌时.我没有提供正确的范围.当我将范围更改为

The problem was while getting access token. I was not providing correct scopes. When i changed the scope to

https://spreadsheets.google.com/feeds https://docs.google.com/feedshttps://www.googleapis.com/auth/drive.file

效果很好

这篇关于已超出未经身份验证使用的 Google Drive API 错误每日限制的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆