public class ShakeAroundDeviceApi extends Object
构造器和说明 |
---|
ShakeAroundDeviceApi() |
限定符和类型 | 方法和说明 |
---|---|
static ApiResult |
addDeviceToGroup(int groupId,
List<DeviceIdentifier> deviceIdentifierList)
添加设备到分组,每个分组能够持有的设备上限为10000,并且每次添加操作的添加上限为1000。
|
static ApiResult |
addGroup(String groupName)
新建设备分组,每个帐号下最多只有1000个分组。
|
static ApiResult |
applyId(int quantity,
String applyReason,
String comment,
Integer poiId)
申请配置设备所需的UUID、Major、Minor。
|
static ApiResult |
bindLocation(DeviceIdentifier deviceIdentifier,
String poiId)
配置设备与门店的关联关系
支持创建门店后直接关联在设备上,无需为审核通过状态,摇周边后台自动更新门店的最新信息和状态。
|
static ApiResult |
bindPage(DeviceIdentifier deviceIdentifier,
int... pageIds)
配置设备与页面的关联关系。
|
static ApiResult |
deleteDeviceFromGroup(int groupId,
List<DeviceIdentifier> deviceIdentifierList)
从分组中移除设备,每次删除操作的上限为1000。
|
static ApiResult |
deleteGroup(int groupId)
删除设备分组,若分组中还存在设备,则不能删除成功。
|
static ApiResult |
getApplyStatus(int applyId)
查询设备ID申请的审核状态。
|
static ApiResult |
getGroupDetail(int groupId,
int begin,
int count)
查询分组详情,包括分组名,分组id,分组里的设备列表。
|
static ApiResult |
getGroupList(int begin,
int count)
查询账号下所有的分组。
|
static ApiResult |
searchByDevice(DeviceIdentifier deviceIdentifier)
查询设备列表
|
static ApiResult |
searchPage(int begin,
int count)
需要分页查询或者指定范围内的设备时
|
static ApiResult |
searchPage(int applyId,
int begin,
int count)
根据批次id查找
|
static ApiResult |
searchRelation(DeviceIdentifier deviceIdentifier,
int type)
查询设备与页面的关联关系。
|
static ApiResult |
updateDeviceInfo(DeviceIdentifier deviceIdentifier,
String comment)
编辑设备的备注信息。
|
static ApiResult |
updateGroup(int groupId,
String groupName)
编辑设备分组信息,目前只能修改分组名。
|
public static ApiResult applyId(int quantity, String applyReason, String comment, Integer poiId)
quantity
- 申请的设备ID的数量,单次新增设备超过500个,需走人工审核流程applyReason
- 申请理由,不超过100个汉字或200个英文字母comment
- 备注,可为空,不超过15个汉字或30个英文字母poiId
- 设备关联的门店ID,可为空,关联门店后,在门店1KM的范围内有优先摇出信息的机会。门店相关信息具体可查看:https://mp.weixin.qq.com/zh_CN/htmledition/comm_htmledition/res/store_manage/store_manage_file.zippublic static ApiResult getApplyStatus(int applyId)
applyId
- 批次ID,申请设备ID时所返回的批次IDpublic static ApiResult updateDeviceInfo(DeviceIdentifier deviceIdentifier, String comment)
deviceIdentifier
- 设备信息comment
- 设备的备注信息,不超过15个汉字或30个英文字母。public static ApiResult bindLocation(DeviceIdentifier deviceIdentifier, String poiId)
deviceIdentifier
- 设备信息poiId
- 设备关联的门店ID,关联门店后,在门店1KM的范围内有优先摇出信息的机会。当值为0时,将清除设备已关联的门店ID。门店相关信息具体可查看:https://mp.weixin.qq.com/zh_CN/htmledition/comm_htmledition/res/store_manage/store_manage_file.zippublic static ApiResult searchByDevice(DeviceIdentifier deviceIdentifier)
deviceIdentifier
- 指定的设备public static ApiResult searchPage(int begin, int count)
begin
- 页面列表的起始索引值;count
- 待查询的页面数量,不能超过50个;public static ApiResult searchPage(int applyId, int begin, int count)
applyId
- 应用idbegin
- 页面列表的起始索引值;count
- 待查询的页面数量,不能超过50个;public static ApiResult bindPage(DeviceIdentifier deviceIdentifier, int... pageIds)
deviceIdentifier
- 设备信息pageIds
- 待关联的页面列表public static ApiResult searchRelation(DeviceIdentifier deviceIdentifier, int type)
deviceIdentifier
- 设备信息type
- 类别public static ApiResult addGroup(String groupName)
groupName
- 分组名public static ApiResult updateGroup(int groupId, String groupName)
groupId
- 分组idgroupName
- 分组名public static ApiResult deleteGroup(int groupId)
groupId
- 分组idpublic static ApiResult getGroupList(int begin, int count)
begin
- 分组列表的起始索引值count
- 待查询的分组数量,不能超过1000个public static ApiResult getGroupDetail(int groupId, int begin, int count)
groupId
- 分组唯一标识,全局唯一begin
- 分组列表的起始索引值count
- 待查询的分组数量,不能超过1000个public static ApiResult addDeviceToGroup(int groupId, List<DeviceIdentifier> deviceIdentifierList)
groupId
- 分组唯一标识,全局唯一deviceIdentifierList
- 设备信息public static ApiResult deleteDeviceFromGroup(int groupId, List<DeviceIdentifier> deviceIdentifierList)
groupId
- 分组唯一标识,全局唯一deviceIdentifierList
- 设备信息Copyright © 2017. All rights reserved.