Google drive api 访问未配置google drive API

Google drive api 访问未配置google drive API,google-drive-api,Google Drive Api,当我访问google驱动器uri{YOUR_API_KEY} 我的服务中有两个驱动SDK和驱动API 但仍然可以得到: { "error": { "errors": [ { "domain": "usageLimits", "reason": "accessNotConfigured", "message": "Access Not Configured" } ], "code": 403, "message": "Access Not Co

当我访问google驱动器uri{YOUR_API_KEY}

我的服务中有两个驱动SDK和驱动API

但仍然可以得到:

{
 "error": {
  "errors": [
   {
    "domain": "usageLimits",
    "reason": "accessNotConfigured",
    "message": "Access Not Configured"
   }
  ],
  "code": 403,
  "message": "Access Not Configured"
 }
}
在那里,我好像把它穿过了窗户,它工作得很好

如何正确返回json

{
 "selfLink": "https://www.googleapis.com/drive/v2/files/1obpi0bmSDILX1cIQcVRNi1lUkm2K5xBFztmRFiM",
 "modifiedDate": "2012-12-13T20:41:07.602Z",
 "ownerNames": [
  "Norman"
 ],
 "lastModifyingUserName": "Norman"
}

我使用的是一个旧的api密钥,现在可以使用了

创建新的客户端id也解决了我的问题。它以前一直在工作,但神秘地停止了。我的旧客户端id的格式是{number}.apps.googleusercontent.com,而新客户端id的格式是{number}-{gibberish}.apps.googleusercontent.com。