shravan
(Shravan)
April 22, 2020, 4:28am
1
I’m able to access download URLs fine and when the download URL is pasted into the browser it is downloading the mp4 file.
The same download_url I’m using from nodeJS or python it is returning HTML Page as a response (Required Password HTML Page), Wrapped the URL with Nodejs it is returning status code as 401 and response body forbidden.
How can I access the Recorded meeting video from the backend code(Node JS or Python) ?
I’m using JWT Token to retrieve the download_URL
Hi @shravan , I have removed the screenshot as it included sensitive account and recording data.
When accessing the recording, can you add a JWT as an access_token parameter to the download url?
Follow the Get Meeting Recordings API documentation reference on the download_url for more information.
shravan
(Shravan)
April 23, 2020, 1:04am
3
Yes I’m adding access_token parameter for that I’m passing jet token
download_url? access_token = Bearer < JWT TOKEN >
@shravan do you know if there are any authentication profiles on your account or user level settings restricting access to cloud recordings from specific domains?
ankit
(ankit)
May 21, 2020, 12:07pm
5
did you find the solution ? I am not getting any response from zoom team and there is no way to implement this. Please someone provide solution for this.
shoeb
(Zoomer)
May 26, 2020, 6:28pm
6
Hi Shravan
Did this work for you. I am having the same problem. Download_url returns a html response and not the recording (using Node.js, JWT)
Regards
shravan
(Shravan)
May 27, 2020, 3:25am
7
No it is not resolve,so I’m using webhook to fix that problem
tommy
(Tommy Gaessler (PM VDI, Web, Linux, & Meeting SDK))
June 1, 2020, 9:17pm
8
Hey @ankit , @shoeb , @shravan ,
Can you please share the code you are using to download the file?
Please share steps to reproduce the issue.
Thanks,
Tommy
Hey @tommy ,
This is my code.
$destination = $dir . "/movie.mp4";
$authorization = 'Authorization: Bearer ' . $token;
$url = $url . '?access_token=' . $token;
$fp = fopen($destination, "w");
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_HTTPHEADER, array('Content-Type: application/json' , $authorization));
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 10);
curl_setopt($ch, CURLOPT_FORBID_REUSE, 1);
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0);
curl_setopt($ch, CURLOPT_AUTOREFERER, true);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);
curl_setopt($ch, CURLOPT_FILE, $fp);
curl_exec($ch);
fclose($fp);
url and token is download_url and download_token in Recording Completed
And result:
{“status”:false,“errorCode”:401,“errorMessage”:“Forbidden”}
tommy
(Tommy Gaessler (PM VDI, Web, Linux, & Meeting SDK))
June 30, 2020, 9:10pm
11
Hey @karasiov , @HyoSeong ,
Can you try just using the ?access_token=token query param and not the Authorization Bearer?
That should fix the issue.
Thanks,
Tommy
Thanks for reply, @tommy
I changed my code
$destination = $dir . "/movie.mp4";
//$authorization = 'Authorization: Bearer ' . $token;
$url = $url . '?access_token=' . $token;
$fp = fopen($destination, "w");
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
//curl_setopt($ch, CURLOPT_HTTPHEADER, array('Content-Type: application/json' , $authorization));
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 10);
curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 0);
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0);
curl_setopt($ch, CURLOPT_FILE, $fp);
Then the result is
Access denied
But cURL command works, postman works too. ( download_url?access_token=somelongtoken )
(This is weird)
Temporary I use Get Meeting Recordings API, this API return download_url too,
But It doesn’t need any token to download.
tommy
(Tommy Gaessler (PM VDI, Web, Linux, & Meeting SDK))
July 2, 2020, 12:08am
13
Hey @HyoSeong ,
Can you try allowing redirects in your request to download the file:
curl, http-redirect
Does it have the token included?
Thanks,
Tommy
mokutsu
(Misato)
July 2, 2020, 8:46pm
14
not OP but this fixed my 401 / getting HTML response. thanks!
tommy
(Tommy Gaessler (PM VDI, Web, Linux, & Meeting SDK))
July 6, 2020, 11:09pm
15
Thanks for sharing @mokutsu !
-Tommy
psuhas
(Suhas)
July 16, 2020, 9:29pm
16
For clarify the correct curl command that worked for me is
curl -L -X GET <download_url_from_meeting_api>?access_token=<jwt_token>
The docs are confusing on this one as <download_path> is no where to be found
ssnukala
(ssnukala)
July 18, 2020, 1:29pm
17
@tommy , @mokutsu
I have the same issue I am able to download using a browser when I am logged in the Download url plus the JWT token as a query parameter works.
But when I do the same using my php code using curl it gives password required page in return.
@tommy . I see that there are multiple questions on this.
I am guessing you may have something that worked end to end. So please post full code and steps that you guys have tested and work
Download the file using curl in PHP not command line shell
Get the actual file name instead of specifying one.
I have code for all this but I can not get past the password required using PHP curl.
Any help will be greatly appreciated.
Srinivas
tommy
(Tommy Gaessler (PM VDI, Web, Linux, & Meeting SDK))
July 22, 2020, 6:53am
18
Hey @psuhas ,
Thanks for sharing and your feedback. We will use it to improve our docs.
-Tommy
tommy
(Tommy Gaessler (PM VDI, Web, Linux, & Meeting SDK))
July 22, 2020, 6:55am
19
Hey @ssnukala ,
Make sure of, add the JWT Token as a query param and not as a request header:
download_url?access_token=JWT_TOKEN_HERE
I see I have replied to a few of your posts already in this thread, let’s continue this discussion there:
Hey @ssnukala ,
Is your download url in this format:
download_url?access_token=JWT_TOKEN_HERE
If you are still having issues, please send your download_url to developersupport@zoom.us so we can assist further.
Thanks,
Tommy
Let me know if that helps!
Thanks,
Tommy
you are trying to open the destinarion with write permission, please try with “r” instead of “w” like this:
$fp = fopen($destination, "r");