Files
BW/arrowchat5/public/video/agora/SignalingToken.php
sean 343b4a3f3f
Some checks failed
deploy-testing / deploy (push) Has been cancelled
Initial testing snapshot
2026-11-19 18:32:17 -05:00

17 lines
454 B
PHP

<?php
$SDK_VERSION = "1";
function getToken($appid, $appcertificate, $account, $validTimeInSeconds){
global $SDK_VERSION;
$expiredTime = time() + $validTimeInSeconds;
$token_items = array();
array_push($token_items, $SDK_VERSION);
array_push($token_items, $appid);
array_push($token_items, $expiredTime);
array_push($token_items, md5($account.$appid.$appcertificate.$expiredTime));
return join(":", $token_items);
}
?>