是否有可能获得组织的所有信标(包括第三方信标)?
我刚刚在API中找到了这个GET调用:
https://docs.gimbal.com/rest.html#beacons_get_all
预期的JSON响应:
[
{
"id": "beacon_id_one",
"factory_id": "XXXX-ZZZZZ",
"icon_url": "https://api.getfyx.com/assets/fallback/default_icon.png",
"name": "John's Beacon one",
"latitude": 32.7150,
"longitude": 117.1625,
"gimbal_latitude": 33.889916,
"gimbal_longitude": -117.351344,
"gimbal_location_last_updated_date": "2016-07-22T09:32:02.000Z",
"visibility": "Private",
"battery_level": "Battery Level of the Beacon",
"battery_updated_date": "2016-05-28T15:54:11.000Z",
"hardware": "Hardware type of the Beacon",
"owner": "SELF",
"beacon_attributes": {
"key1": "value1",
"key2": "value2"
}
},
{
"id": "beacon_id_two",
"factory_id": "XXXX-YYYYY",
"icon_url": "https://api.getfyx.com/assets/fallback/default_icon.png",
...
这是我的请求的样子。响应是HTTP 200和空数组。
可悲的是,它不会返回第三方信标。
答案 0 :(得分:0)
我从Gimbal支持部门那里得到了回答:
要回答您的问题,不,我们不会通过我们的REST API返回第三方信标,并且此功能未计划在未来使用
因此无法通过REST API获取第三方信标。