红外相关 API
Methods
(static) controllerAdd(params) → {Promise.<json>}
红外遥控器 添加红外遥控器
- /v2/irdevice/controller/add
Parameters:
Name | Type | Description |
---|---|---|
params |
json | {name:string,parent_id:string,category:int,controller_id(选填):int,lineup_id(选填):string} |
(static) controllerDel(params) → {Promise.<json>}
删除红外设备
- /v2/irdevice/controller/del
Parameters:
Name | Type | Description |
---|---|---|
params |
json | {did:string} |
(static) controllerUpdate(params) → {Promise.<json>}
更新红外设备
- /v2/irdevice/controller/update
Parameters:
Name | Type | Description |
---|---|---|
params |
json | {did:string,keys:[{code:string,name:string,key_id:int}]} |
(static) getAreas(params) → {Promise.<json>}
(查) 根据地区 id 获取所有的城市信息
- /v2/ircode/area/city/areas
Parameters:
Name | Type | Description |
---|---|---|
params |
json | {city_id: int} |
(static) getBrands(params) → {Promise.<json>}
(查) 红外遥控器 获取某一个遥控器类型的所有省份信息
- /v2/ircode/category/brands
Parameters:
Name | Type | Description |
---|---|---|
params |
json | {category: int} |
(static) getCategories(params) → {Promise.<json>}
(查) 获取所有支持的红外遥控器种类
- /v2/ircode/categories
Parameters:
Name | Type | Description |
---|---|---|
params |
json | {} |
(static) getCities(params) → {Promise.<json>}
(查) 红外遥控器 根据省份 id 获取所有的城市
- /v2/ircode/area/province/cities
Parameters:
Name | Type | Description |
---|---|---|
params |
json | {province_id: int} |
(static) getIPTVBrands(params) → {Promise.<json>}
(查) 红外遥控器 获取所有机顶盒支持的品牌
- /v2/ircode/iptv/brands
Parameters:
Name | Type | Description |
---|---|---|
params |
json | {province_id: int} |
(static) getIrCodeBrand(params) → {Promise.<json>}
获取遥控器品牌名
- /v2/ircode/brand
Parameters:
Name | Type | Description |
---|---|---|
params |
json | {brand_id:int} |
(static) getIrCodeFunctions(params) → {Promise.<json>}
获取有状态红外码
- /v2/ircode/controller/functions
Parameters:
Name | Type | Description |
---|---|---|
params |
json | {controller_id:int} |
(static) getIrCodeInfo(params) → {Promise.<json>}
获取遥控器信息
- /v2/irdevice/controller/info
Parameters:
Name | Type | Description |
---|---|---|
params |
json | {did:string} |
(static) getIrCodeKeys(params) → {Promise.<json>}
获取无状态红外码
- /v2/ircode/controller/keys
Parameters:
Name | Type | Description |
---|---|---|
params |
json | {controller_id:int} |
(static) getKeys(params) → {Promise.<json>}
获取红外设备所有的 key
- /v2/irdevice/controller/keys
Parameters:
Name | Type | Description |
---|---|---|
params |
json | {did:string} |
(static) getLineups(params) → {Promise.<json>}
(查) 根据地区 id 获取支持的机顶盒品牌
- /v2/ircode/area/lineups
Parameters:
Name | Type | Description |
---|---|---|
params |
json | {area_id:int} |
(static) getList(params) → {Promise.<json>}
(查) 获取所有遥控器列表
- /v2/irdevice/controllers
Parameters:
Name | Type | Description |
---|---|---|
params |
json | {parent_id:string} |
(static) getProvinces(params) → {Promise.<json>}
(查) 红外遥控器 获取所有省份信息
- /v2/ircode/area/provinces/china
Parameters:
Name | Type | Description |
---|---|---|
params |
json | {} |
(static) keyClick(params) → {Promise.<json>}
发送红外遥控器按键接口
- /v2/irdevice/controller/key/click
Parameters:
Name | Type | Description |
---|---|---|
params |
json | {controller_id:int,did:string,key_id:int} |
(static) keyDel(params) → {Promise.<json>}
删除红外设备的 key
- /v2/irdevice/controller/key/del
Parameters:
Name | Type | Description |
---|---|---|
params |
json | {did:string,key_id:string} |
(static) keyUpdate(params) → {Promise.<json>}
更新红外设备的 key 名称
- /v2/irdevice/controller/key/update
Parameters:
Name | Type | Description |
---|---|---|
params |
json | {did:string,name:string} |
(static) queryArea(params) → {Promise.<json>}
(查) 红外遥控器 根据地区名称查询 id
- /v2/ircode/area/area_id
Parameters:
Name | Type | Description |
---|---|---|
params |
json | {province:string,city:string,area:string} |
(static) sendKey(params) → {Promise.<json>}
设置红外遥控所有的按键
- /v2/irdevice/send_key
Parameters:
Name | Type | Description |
---|---|---|
params |
json | {did:string,controller_id:int,key_id(选填):int,ac_key(选填):string} |
(static) setKeys(params) → {Promise.<json>}
设置红外遥控所有的按键
- /v2/irdevice/controller/keys/set
Parameters:
Name | Type | Description |
---|---|---|
params |
json | {keys:[{code:string,key_id(选填):int,name(选填):string}]} |