查询通道列表
开发中
GET
/channels
请求参数
Query 参数
did
string
设备 id
is_online
string
可选
示例值:
true
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request GET 'http://test-cn.your-api-server.com/channels?did&is_online= true'
返回响应
🟢200成功
application/json
Body
items
array [object {7}]
必需
id
string
必需
device_id
string
必需
channel_id
string
必需
name
string
必需
ptztype
integer
必需
is_online
boolean
必需
ext
object
必需
total
integer
必需
示例
{
"items": [
{
"id": "string",
"device_id": "string",
"channel_id": "string",
"name": "string",
"ptztype": 0,
"is_online": true,
"ext": {
"manufacturer": "string",
"model": "string",
"firmware": "string",
"name": "string"
}
}
],
"total": 0
}
修改于 2025-03-09 08:19:20