小编P.F*_*pov的帖子

Google Drive API 失败 - 来自您的计算机网络的异常流量

Google Drive API GET 查询开始失败(我们在我们的客户端服务之一中使用此 API):

https://www.googleapis.com/drive/v3/files/1ke4Yoxxxxxxxxxxxxxx?alt=media&access_token=ya29.ImG9BwT.....
Run Code Online (Sandbox Code Playgroud)

很抱歉... ...但是您的计算机或网络可能正在发送自动查询。为了保护我们的用户,我们现在无法处理您的请求。有关详细信息,请参阅 Google 帮助...“来自您的计算机网络的异常流量”

直到今天一切都很好。

刚刚用 curl 做了几个测试:

  1. 在 HTTP 标头中使用 access_token 的 HTTP GET:curl -H "Authorization: Bearer ya29._valid_access_token" https://www.googleapis.com/drive/v3/files/1r5BT2WPrulQ6FyhT8RcqV51TVOThEmhK?alt=media

结果:成功,文件下载。

  1. 使用 access_token 作为 HTTP 请求一部分的 HTTP GET:curl https://www.googleapis.com/drive/v3/files/1r5BT2WPrulQ6FyhT8RcqV51TVOThEmhK?alt=media&access_token=ya29._valid_access_token

结果:错误

    {
 "error": {
  "errors": [
   {
    "domain": "usageLimits",
    "reason": "dailyLimitExceededUnreg",
    "message": "Daily Limit for Unauthenticated Use Exceeded. Continued       use requires signup.",
    "extendedHelp": "https://code.google.com/apis/console"
   }
  ],
  "code": 403,
  "message": "Daily Limit for Unauthenticated Use Exceeded. Continued use requires signup."
 }
} 
Run Code Online (Sandbox Code Playgroud)

注意谷歌API项目被谷歌批准并有Production状态!!!

您好 Google …

google-drive-api

5
推荐指数
1
解决办法
790
查看次数

标签 统计

google-drive-api ×1