代码拉取完成,页面将自动刷新
This SDK is to help the developer to quickly connect to the QR Master Access Management System.
$ composer require uclbrt/api-sdk
use uclbrt\Key;
...
try{
$key = new Key([
'accountSid' => 'your account sid from QR Master',
'authToken' => 'your auth token from QR Master',
]);
$key->setCommunityNo('your community No. from QR Master');
$key->setCommunityTimezone('Timezone set in the information of community of QR Master, eg: Asia/Shanghai, Etc/GMT-8');
$cardNo = $key->createRoomKey($mobile, $areaCode, $roomNo, $floorNo, $buildNo);
}
catch (Exception $e)
{
// Your wrong operation
}
...
/**** QR code related ****/
// Create room key
createRoomKey($mobile, $areaCode, $roomNo, $floorNo='', $buildNo='', $startTime='', $endTime='', $sendSms=0, $times=0)
// Create floor key
createFloorKey($mobile, $areaCode, $floorNo, $buildNo, $startTime='', $endTime='', $sendSms=0)
// Create Building key
createBuildingKey($mobile, $areaCode, $buildNo, $startTime='', $endTime='', $sendSms=0)
// Create room lost keys
createRoomLostKey($mobile, $areaCode, $roomNo, $floorNo='', $buildNo='', $startTime='', $endTime='')
// Room Card lost report
reportCardLost($cardNo, $wholeRoom = false)
// Get room key(link)
getRoomKeyLink($mobile, $areaCode, $cardNo='')
// Get floor key(link)
getFloorKeyLink($mobile, $areaCode, $cardNo='')
// Get building key(link)
getBuildingKeyLink($mobile, $areaCode, $cardNo='')
// Get room key(image)
getRoomKeyImage($mobile, $areaCode, $cardNo, $openEndTime='')
// Get Floor key(image)
getFloorKeyImage($mobile, $areaCode, $cardNo, $openEndTime='', $lockType=0)
// Get Building key(image)
getBuildingKeyImage($mobile, $areaCode, $cardNo, $openEndTime='', $lockType=0)
// Cancel the room key
cancelRoomKey($cardNo)
// Cancel the floor key
cancelFloorKey($cardNo)
// Cancel the building key
cancelBuildingKey($cardNo)
// Generate QRP room cipher
generateQRPRoomCipher($mobile, $areaCode, $roomNo, $floorNo='', $buildNo='', $startTime='', $endTime='', $cipherType = 1)
// Get QRP room cipher
getQRPRoomCipher($mobile, $areaCode, $cardNo)
/**** Issuer related ****/
// Get the list of card issuers
getMacList()
// Issue RF card
makeCard($issueMac, $buildNo, $floorNo, $roomNo, $endTime, $creatorAreaCode, $creatorMobile, $creatorPassword, $owner = '', $opentype = 0, $ownerGender = 1, $ownerAreaCode = '', $ownerMobile = '', $creatorEmail = '')
// Issue RF lost card
makeLostCard($issueMac, $buildNo, $floorNo, $roomNo, $endTime, $creatorAreaCode, $creatorMobile, $creatorPassword, $owner = '', $opentype = 0, $ownerGender = 1, $ownerAreaCode = '', $ownerMobile = '', $creatorEmail = '')
// Read Card
readCard($issueMac, $creatorAreaCode, $creatorMobile, $creatorPassword, $operateCardType, $creatorEmail = '')
// Cancel Card
cancelCard($issueMac, $serialNum, $creatorAreaCode, $creatorMobile, $creatorPassword, $operateCardType, $creatorEmail = '')
The MIT License (MIT).For more information, please refer to License code.
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。