ios - 使用 Google Proximity Beacon API 注册 iBeacon
问题描述
我一直在尝试使用 Google OAuth Playground 使用 Google Proximity Beacon API 注册 iBeacon,因为无法使用 Beacon Tools App 进行注册。
1) Signed up on Google API Console.
2) Created new Project.
3) Enabled Beacon Proximity API and Nearby API.
4) Generated API key from Credentials.
5) Provided Client ID as header ( "Authorization":BearerValue )
https://proximitybeacon.googleapis.com/v1beta1/beacons:register?key=(API_KEY)
{
"advertisedId": {
"type": "EDDYSTONE",
"id": "T3jqVgkCAwoToQABAACAew=="
},
"status": "ACTIVE"
}
Proximity Beacon API的Beacon Editor
权限也在我的 IAM - Google API 控制台帐户中提供。
但我得到的回应是
{
"error": {
"code": 403,
"message": "Unauthorized.",
"status": "PERMISSION_DENIED"
}
}
找到类似的帖子,但没有一个有正确的答案。有没有人找到解决方案?
解决方案
推荐阅读
- r - 合并两个数据框,但意味着两者中都存在的列
- python - 避免对特定列 pandas 进行四舍五入
- angular - 角度为 5 的 GBP 货币的 Kendo 数字文本框
- postgresql - PostgreSQL:后端进程长时间处于活动状态
- php - 在 PHP 7.3 扩展中通过引用传递多个变量
- javascript - 将 HTML 作为参数从 c# WCF 传递给 javascript 函数
- javascript - 替换字符串中的所有句点不起作用
- ssas - 无法第二次重新打开 Analysis Services 表格项目 - 错误数据库已处于分离状态
- angular - 添加到列表后,只有第一个新项目动画
- python - 可以计算一个列表中多个字符串的匹配吗?