Download & Save Zoom Recording in directory by PHP
PHP Snippet 1:
$src = 'https://api.zoom.us/rec/download/tJN4d7v5_Ts3HtzD4QSDVqJwW9XoJvms0nUbq_cPnRzhUCMAN1alZrVAN-AD8vw4clXzSccEqqZtfZw_';
$fileName = 'tmp_file.mp4';
$dest = getcwd() . DIRECTORY_SEPARATOR . $fileName;
$ch = curl_init($src);
curl_exec($ch);
if (!curl_errno($ch)) {
$info = curl_getinfo($ch);
$downloadLink = $info['redirect_url'];
}
curl_close($ch);
if($downloadLink) {
copy($downloadLink, $dest);
}