professionalweb / skud
Commponent for communication with RusGuard
Requires
- php: >=5.4.0
README
Composer
RusGuard component is available through composer
composer require professionalweb/skud "*"
Alternatively you can add the following to the require
section in your composer.json
manually:
"professionalweb/skud": "*"
Run composer update
afterwards.
In your PHP project
$skud = new \professionalweb\skud\Skud(); $skud->url = 'http://skud/LNetworkServer/LNetworkService.svc?singleWsdl', $skud->login = 'admin'; $skud->password = '';
Add person to SKUD
$personInfo = $skud->addEmployee('75f918bf-24fc-445f-8ff5-8fd11e1ad361', 'John', 'Johnov', 'Merian'); $skud->assignKey($personInfo->ID, '9874566321154');
Update person to SKUD
$result = $skud->updateEmployee($personInfo->ID, 'John', 'Smith', 'Merian');
Set key is lost
$skud->setKeyIsLost('9874566321154', $personInfo->ID);
Get groups
$skud->getGroups();
Get person by key
$skud->getEmployeeIdByKey('9874566321154');
Remove employee
$skud->removeEmployee($personInfo->ID);
Remove employee by key number
$skud->removeEmployeeByCardNumber('9874566321154');
Get variable
$skud->getVariable($name);
Add employee's photo
$skud->addEmployeePhoto($personInfo->ID, null, $base64Data);
Get employee info
$skud->getEmployee($$personInfo->ID)
Get employee's photo
$skud->getEmployeePhoto($personInfo->ID, 1);
Get events
$skud->getEvents($fromDate = null, $toDate = null, $inoutEventType = null, $page = 1, $pageSize = 20)
Listen for notifications
$result = $skud->getNotification();
The MIT License
The MIT License (MIT)
Copyright (c) 2015 Sergey Zinchenko, Professional web
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.