Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
iMactool committed Oct 8, 2022
1 parent 0bb1dbf commit cf77195
Showing 1 changed file with 52 additions and 2 deletions.
54 changes: 52 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<h1 align="center"> hikcloud </h1>

<p align="center"> 企业内部应用开发-社区.</p>


## 安装

Expand Down Expand Up @@ -33,13 +33,63 @@ $ composer require imactool/hikcloud -vvv
];
$res = $hikCloud->Communit->communities($params);
var_dump($res);

```

`client_id` 使用云眸系统管理员账号登录开放平台门户网站 [open2.hik-cloud.com](https://www.hik-cloud.com/poseidon/index.html#/) ,进入密钥管理页面查看获取

`client_secret` 使用云眸账号登录开放平台门户网站 [open2.hik-cloud.com](https://www.hik-cloud.com/poseidon/index.html#/) ,进入密钥管理页面查看获取

更多用法请参考源码
更多用法请参考源码,支持 6000C。

6000c 拉取视频流 demo

```php

#1、分页查询云眸社区租户下的社区
$params = [
'pageNo'=>1,
'pageSize'=>100
];
$res = $hik->Communit->getCommunities($params);
var_export($res);

#2、查询社区下的设备列表
$params = [
'communityId'=>'123456789',
'pageNo'=>2,
'pageSize'=>100
];
$res = $hik->Device->getDeviceByCommunityId($params);
var_export($res);

#3、查询社区下设备通道列表
$params = [
'communityId'=>'123456789',
'pageNo'=>2,
'pageSize'=>100
];
$res = $hik->Device->getDeviceChannelByCommunityId($params);
var_dump($res);

#4、 获取标准流预览地址(支持6000C子设备通道。)
$params = [
'channelId' => '1234526789',
'protocol' => 4,
'expireTime' => 180
];
$res = $hik->Device->getLiveAddressNew($params);
var_dump($res);


#查询设备详情
$deviceId = '744e45a58f1c45aa84096fc00476ce53';
$res = $hik->Device->getDeviceInfo($deviceId);
var_dump($res);



```

## 参考文档
> 请熟悉和参考文档的参数要求
Expand Down

0 comments on commit cf77195

Please sign in to comment.