Google api 使用OAuth2.0进行测试

Google api 使用OAuth2.0进行测试,google-api,google-oauth,permission-denied,oauth2-playground,Google Api,Google Oauth,Permission Denied,Oauth2 Playground,我想测试来自邻近信标API的一些API请求。因此,我按照中的步骤将测试重定向url()放入OAuth-2.0-Client-ID中 { "error": { "status": "PERMISSION_DENIED", "message": "Google Proximity Beacon API has not been used in project google.com:oauth-2-playground before or it is disabled. Enab

我想测试来自邻近信标API的一些API请求。因此,我按照中的步骤将测试重定向url()放入OAuth-2.0-Client-ID中

{
  "error": {
    "status": "PERMISSION_DENIED", 
    "message": "Google Proximity Beacon API has not been used in project google.com:oauth-2-playground before or it is disabled. Enable it by visiting https://console.developers.google.com/apis/api/proximitybeacon.googleapis.com/overview?project=google.com:oauth-2-playground then retry. If you enabled this API recently, wait a few minutes for the action to propagate to our systems and retry.", 
    "code": 403, 
    "details": [
      {
        "@type": "type.googleapis.com/google.rpc.Help", 
        "links": [
          {
            "url": "https://console.developers.google.com/apis/api/proximitybeacon.googleapis.com/overview?project=google.com:oauth-2-playground", 
            "description": "Google developers console API activation"
          }
        ]
      }
    ]
  }
}
很明显,它使用了错误的项目,但我只到了一步,我可以选择我的帐户,但不能选择我的项目。我检查了两次,我唯一的猜测是我不能使用这个重定向url


所以我的问题是:为什么它试图使用项目google.com:oauth-2-playerd而不是我的?我怎样才能改变这个

未在OAuth 2.0游乐场使用的默认凭据上启用邻近信标API。我刚刚启用了该API,现在应该可以工作了


或者,您可以在游乐场的配置菜单中设置OAuth 2.0游乐场,以使用您自己应用程序的OAuth凭据(客户端ID和客户端机密)。

您不能使用谷歌的东西,他们需要更改它。我给他们打了个电话,不知道他们什么时候能解决这个问题。我投票结束这个问题,因为它是关于Google Oauth游乐场的一个bug/用法,除了Google之外,任何人都不能解决这个bug。好的,谢谢。我已经认为这一定是个bug。我启用了api,但还是出现了那个错误。我的测试解决方案是使用带有cliend id和secret的服务器端设置。谷歌云控制台中缺少接近信标API。有人能确认一下吗?