sanju.ps
(Sanju)
October 5, 2020, 3:35pm
1
Hi Team,
We are encountering a strange error from Zoom API when downloading recorded meeting. Please see the detailed explanation below.
When I tried to download the recordings files that are about to auto-delete within 1-3 days, the downloaded file is partial and it is only 41KB. But the Original file size is 239 MB or something like that.
In my recording list there are recordings which will auto-delete after 21 days and so, but I can download them without any issue regardless of the file size.
Programming language and Framework: PHP - LARAVEL
Authentication method: JWT
Errors: There is no error logged
Downloading method: CURL
CODE:-
public function downloadFileToStorage($downloadUrl, $fileName, $ext)
{
try{
$src = $downloadUrl;
$downloadLink = null;
$dest = storage_path("app/public/files/$fileName");
$ch = curl_init($src);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_ENCODING, "");
curl_setopt($ch, CURLOPT_MAXREDIRS, 10);
curl_setopt($ch, CURLOPT_TIMEOUT, 0); //timeout in seconds
curl_setopt($ch, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_1);
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, "GET");
curl_setopt($ch, CURLOPT_POSTFIELDS, "");
curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 0);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);
curl_exec($ch);
if (!curl_errno($ch)) {
$info = curl_getinfo($ch);
$downloadLink = $info['url'];
}else{
Log::info($ch);
}
if ($downloadLink) {
copy($downloadLink, $dest);
}
}catch (\Exception $e){
Log::error($e);
}
}
Hey @sanju.ps
Thanks for posting on the Zoom Devforum! I am still learning, but I will try my best to help answer your question.
Checkout this related thread that may have the answer you are looking for:
I’ve written some C# code to retrieve the following values using the Zoom API’s:
List All Users
List User Recordings
But I can’t seem to download recording files successfully using the WebClient C# class.
It seems to download the HTML for the Sign In page.
I’ve also tried setting the Authorization header the same way as I do to retrieve values using the Zoom API’s. But it doesn’t download any data when I set the Authorization header before trying to download the recording files.
Can someon…
If this thread did not help, please let us know by replying back here and someone from the Developer Relations team will get back to you shortly.
Thanks,
DeveloperBot
sanju.ps
(Sanju)
October 5, 2020, 3:39pm
3
@DeveloperBot ,
No, this thread not answering my question.
Hey @sanju.ps ,
Thanks for reaching out about this—in order to take a closer look at this, can you provide the full API response where you’re getting the download URLs from?
Thanks!
Will
sanju.ps
(Sanju)
October 6, 2020, 3:42pm
6
@will.zoom
Here is the response
array (
'url' => 'URL',
'content_type' => 'text/html;charset=utf-8',
'http_code' => 200,
'header_size' => 3988,
'request_size' => 263,
'filetime' => -1,
'ssl_verify_result' => 0,
'redirect_count' => 0,
'total_time' => 0.49823,
'namelookup_time' => 0.004243,
'connect_time' => 0.093429,
'pretransfer_time' => 0.282241,
'size_upload' => 0.0,
'size_download' => 12040.0,
'speed_download' => 24176.0,
'speed_upload' => 0.0,
'download_content_length' => -1.0,
'upload_content_length' => 0.0,
'starttransfer_time' => 0.408976,
'redirect_time' => 0.0,
'redirect_url' => '',
'primary_ip' => '52.202.62.233',
'certinfo' =>
array (
),
'primary_port' => 443,
'local_ip' => '10.0.2.18',
'local_port' => 52966,
'http_version' => 2,
'protocol' => 2,
'ssl_verifyresult' => 0,
'scheme' => 'HTTPS',
)
Thank you @sanju.ps — I just DM’d you for some additional details when you have a chance.
Best,
Will
sanju.ps
(Sanju)
October 13, 2020, 7:14pm
9
Hi Will,
Thanks for the reply. I just DM’d the details. Please have a look.
Hey @sanju.ps ,
I’m not seeing your DM—if you’re having trouble replying to my message, you can also reach out to developersupport@zoom.us as well.
Thanks,
Will
sanju.ps
(Sanju)
October 15, 2020, 3:41am
11
Hi Will,
An email with relevant details has been sent to the address developersupport@zoom.us
Thanks, @sanju.ps — I’ve continued the conversation there!
system
(system)
Closed
November 15, 2020, 6:14am
13
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.