使用Google Proximity API的401

时间:2016-02-12 17:30:53

标签: api authentication proximity beacon

按照分步说明(https://developers.google.com/beacons/proximity/guides)后,我可以成功启用Google Proximity Beacon API,并为我在Google Developers Console中创建的应用创建API密钥和OAuth 2.0客户端ID。 所有内容都设置正常:Google Proximity Beacon API显示为活动状态,“凭据”标签显示API Key和OAuth 2.0客户端ID。

当我尝试调用Beacon时出现问题:响应给出了“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": [
      ...

我有点迷失在这里......有人吗? 提前谢谢。

只Flik

0 个答案:

没有答案