https://github.com/imactool/dssplat
大华H8900平台
https://github.com/imactool/dssplat
Last synced: about 1 year ago
JSON representation
大华H8900平台
- Host: GitHub
- URL: https://github.com/imactool/dssplat
- Owner: iMactool
- Created: 2022-02-08T06:56:10.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2022-02-10T05:12:13.000Z (over 4 years ago)
- Last Synced: 2024-11-23T21:08:35.132Z (over 1 year ago)
- Language: PHP
- Size: 19.5 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
dssplat
大华独立系统H8900平台接口.
[](https://packagist.org/packages/imactool/dssplat)
[](https://packagist.org/packages/imactool/dssplat)
[](https://packagist.org/packages/imactool/dssplat)
[](https://packagist.org/packages/imactool/dssplat)
## Installing
```shell
$ composer require imactool/dssplat -vvv
```
## 使用前必看
H8900对外接口根据版本不同所用的接口文档也是不一样的,另外H8900的对外接口是根据设备来的,现场采用不同的设备所要对接的接口也是不一样的。
所以具体以实际项目部署为准,本`SDK`对接的版本是【`DSS-H8900-SDK-20200111版本(v3.1.4)`】
## 使用方法
> 更多内容请看具体文件,后续逐步完善中
```
require __DIR__ .'/vendor/autoload.php';
use Imactool\Dssplat\DssPlat;
$config = [
'ip' => '192.168.0.12',
'port' => '8314',
'loginName' => 'system',
'loginPass' => '123456',
];
$app = new DssPlat($config);
$result = $app->Auth->login(); //必须先登录,才可以继续调用其他的接口
//获取组织树
$result = $app->Org->getVimsTree();
var_dump($result);
if ($result['success'] == true){
echo "成功获取到组织树
";
foreach ($result['data'] as $val){
echo "父级节点 【{$val['id']}】
";
}
}
//查询设备
$res = $app->Org->getDeviceInfo();
if ($res['result']['code'] == 'success'){
echo "成功获取到 查询设备
";
$val = [];
foreach ($res['data'] as $val){
var_dump($val);
}
}
```
对应的实现的接口文档
```apacheconf
.
├── 01-基础数据接口文档 已实现
├── 02-门禁子系统接口文档 已实现
├── 03-考勤子系统接口文档
├── 04-巡更子系统接口文档
├── 05-梯控子系统接口文档
├── 06-消费子系统接口文档
├── 07-访客子系统接口文档
├── 08-会议子系统接口文档
├── 09-客流子系统接口文档
├── 10-报警子系统接口文档
├── 11-视频子系统接口文档
├── 12-停车子系统接口文档
├── 13-对讲子系统接口文档
├── 14-动环子系统接口文档
├── 15-人脸子系统接口文档
├── 16-工地子系统接口文档
├── 17-小区子系统接口文档
└── 99-事件订阅类接口文档
```
## Contributing
You can contribute in one of three ways:
1. File bug reports using the [issue tracker](https://github.com/imactool/dssplat/issues).
2. Answer questions or fix bugs on the [issue tracker](https://github.com/imactool/dssplat/issues).
3. Contribute new features or update the wiki.
_The code contribution process is not very formal. You just need to make sure that you follow the PSR-0, PSR-1, and PSR-2 coding guidelines. Any new code contributions must be accompanied by unit tests where applicable._
## License
MIT