智能设备列表
商户可以通过该接口分页拉取到自己拥有的设备的列表。
| 请求参数 | 类型 | 描述 |
|---|---|---|
| query | object | 声明请求的查询参数 |
| limit | integer | 最大资源条数 |
| offset | integer | 请求资源起始位置 |
php
$instance->v3->iotmanage->devices->getAsync([
'query' => [
'limit' => 5,
'offset' => 10,
],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
print_r(json_decode((string) $response->getBody(), true));
})
->wait();php
$instance->chain('v3/iotmanage/devices')->getAsync([
'query' => [
'limit' => 5,
'offset' => 10,
],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
print_r(json_decode((string) $response->getBody(), true));
})
->wait();php
$instance['v3/iotmanage/devices']->getAsync([
'query' => [
'limit' => 5,
'offset' => 10,
],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
print_r(json_decode((string) $response->getBody(), true));
})
->wait();php
$response = $instance->v3->iotmanage->devices->get([
'query' => [
'limit' => 5,
'offset' => 10,
],
]);
print_r(json_decode((string) $response->getBody(), true));php
$response = $instance->chain('v3/iotmanage/devices')->get([
'query' => [
'limit' => 5,
'offset' => 10,
],
]);
print_r(json_decode((string) $response->getBody(), true));php
$response = $instance['v3/iotmanage/devices']->get([
'query' => [
'limit' => 5,
'offset' => 10,
],
]);
print_r(json_decode((string) $response->getBody(), true));| 返回字典 | 类型 | 描述 |
|---|---|---|
| data | object[] | 设备信息 |
| device_sn | string | 设备序列号 |
| camera_sn | string | 摄像头序列号 |
| device_category_code | string | 设备品类代码 |
| device_category | string | 设备品类 |
| device_class_code | string | 设备类型代码 |
| device_class | string | 设备类型 |
| device_model | string | 设备型号 |
| app_scene_code | string | 刷脸应用软件模式代码 |
| app_scene | string | 刷脸应用软件模式 |
| operating_system | string | 刷脸应用操作系统 |
| activation_status | string | 激活状态ACTIVATED | INACTIVATED 枚举值之一 |
| activation_time | string | 激活时间 |
| mchid | string | 商户号 |
| merchant_shortname | string | 商户简称 |
| sub_mchid | string | 子商户号 |
| sub_merchant_shortname | string | 子商户简称 |
| offset | integer | 请求资源起始位置 |
| limit | integer | 最大资源条数 |
| total_count | integer | 资源总条数 |
| links | object | 相关链接 |
| next | string | 下一页链接 |
| prev | string | 上一页链接 |
| self | string | 当前链接 |
参阅 官方文档