1

按照分步说明(https://developers.google.com/beacons/proximity/guides)后,我可以成功启用 Google Proximity Beacon API 并为我创建的应用程序创建 API 密钥和 OAuth 2.0 客户端 ID在 Google 开发者控制台中。一切似乎都设置得很好:Google Proximity Beacon API 显示为活动状态,“凭据”选项卡显示 API 密钥和 OAuth 2.0 客户端 ID。

当我尝试调用我的信标时出现问题:响应给我一个“401”错误:

    ...
     "code": 401,
     "message": "The request does not have valid authentication credentials.",
     "status": "UNAUTHENTICATED"
    ...

奇怪的是,如果我尝试 oauthplayground,再次遵循 google 的邻近文档,我会收到 403 错误:

    {
      "error": {
      "status": "PERMISSION_DENIED", 
      "message": "Project has not enabled the API. Please use Google Developers Console to activate the 'proximitybeacon' API for your project.", 
      "code": 403, 
      "details": [
      ...

我有点迷路了……有人吗?先感谢您。

弗里克

4

0 回答 0