login(); // authorize_guest Params: DeviceMac ExpireTime(Minutes) UploadSpeedLimit DownloadSpeedLimit DataCap ApMac //Send AuthRequest $auth_result = $unifi_connection->authorize_guest($clientMac, '2000', $uploadSpeed, $downloadSpeed, null, $apMac); //Check if unsucsessfull if ($auth_result == false) { http_response_code(500); } //provide feedback in json format //error_log (json_encode($auth_result, JSON_PRETTY_PRINT));