是否有可能获得组织的所有信标(包括第三方信标)?
我刚刚在 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 和空数组。
可悲的是,它不返回第三方信标。