Dec. 11, 2020
How to Download Zoom Cloud Recordings by PHP Program ?
- 3 Comments
- 11163 Views
- Categories: Zoom API Cloud Recordings PHP Symfony
The Zoom API is the primary means for developers to access a collection of resources from Zoom. Apps can read and write to the resources and mirror some of the most popular features available in such as creating a new meeting, creating, adding and removing users, viewing reports and dashboards on various usage, and so on using the Zoom API. Depending on your app’s use case, you can choose from Zoom's various APIs and implement the features accordingly.
This is how Zoom's marketplace define the usage of API's provided by Zoom. And indeed using those API's really helpful to reduce back-office operations for most of the companies.
For Cihangir Yoga / Istanbul , we integrate their portals with Zoom thru API's and automate meeting creation for scheduled sessions, implement Zoom Web Client in class detail and when the session start users can watch the session thru this web client under the brand of Cihangir Yoga.
Our next challenge was to download cloud recordings to more cost effective storage and display these videos also on Web pages of the company.
So, how we can automize the process without the need for manual intervention ?
We implemented a batch job by PHP which checks the class sessions already ended for ready recordings. If recordings are available, job get the Download_URL of the recording by using RecordingGET API of Zoom.
$ch = curl_init();
header('Content-Disposition: attachment; filename="'.$recfile->getId().'.mp4"');
// set URL and other appropriate options
$fp = fopen('public/upload/zoomvideos/'.$recfile->getId().'.mp4', 'w+');
curl_setopt($ch, CURLOPT_URL, $recfile->getDownloadUrl().'?access_token='.$authorization);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_FILE, $fp);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);
curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 50);
curl_setopt($ch, CURLOPT_HTTPHEADER, [
'Content-Type: application/octet-stream',
'Content-Description: File Transfer',
]);
curl_exec($ch);
fclose($fp);
use Firebase\JWT\JWT;
protected function generateJWT()
{
$token = [
'iss' => $this::ZOOM_API_KEY,
'exp' => time() + 60,
];
return JWT::encode($token, $this::ZOOM_API_SECRET);
}
3 Comments
GeorgeFunse
My wife loves to watch your videos with me. She asked me to ask you how much time do you spend on it every day? And how difficult is it for a beginner? She doubts her own abilities after one article. I found information <a href=https://csabv.online/europe/>In This Article</a> My wife loves to watch your videos with me. She asked me to ask you how much time do you spend on it every day? And how difficult is it for a beginner? She doubts her own abilities after one article. This issue has already been discussed <a href=https://asfjkda.space/hotels/>On This Site</a> Try the solution described here: https://telkvnxlnc.site/top/ <a href=https://dvinvest.com.br/aprenda/blog/topo-duplo-saiba-como-identificar-e-tirar-proveito>GO INCREDIBLY FAST</a> <a href=https://softwery.com/android-apps/dropbox-apk.html/comment-page-1>What is a Sitemap Index? (with picture)</a> <a href=https://dvinvest.com.br/aprenda/blog/investindo-em-acoes-com-estrategia-e-disciplina>27 Tips for Traveling Abroad for the First Time</a> <a href=http://www.djmarkyp.com/guestbook.php>Flight Schedules > Cairns Airport</a> <a href=https://melmii.mn/post/177>I Made Shaq a Giant</a> <a href=https://www.djmarkyp.com/guestbook.php>Lonely Planet USA - Marston Moor</a> <a href=http://www.sunset.jp/shopblog/index.php?itemid=178>THE ULTIMATE MYKONOS TRAVEL GUIDE</a> <a href=https://dvinvest.com.br/aprenda/blog/gaps-de-alta-e-baixa-saiba-o-que-sao-e-como-identifica-los-no-grafico>HF Holidays - Horizon Guides</a> <a href=https://postmedia.mn/i/4580>I Got A Custom Play button?! ????</a> <a href=http://comhotel.ru/product/roza-shar-shtambovaya-zheltaya-s-krasnym-obodkom-140-sm-91/>Massive Boulder nearly hits Mountaineers on Mt ELBRUS</a> <a href=https://www.moy-recept.ru/rec/1057>Winter Sun Destinations with Click&Go</a> <a href=https://www.djmarkyp.com/guestbook.php>Best of the Peloponnese</a> <a href=https://dvinvest.com.br/aprenda/blog/tipos-de-acoes-e-seus-codigos-de-negociacao>Planning A Trip To Iceland - Everything You Need to Know!</a> <a href=https://mycontinent.co/Norway.php>how to travel CHEAP and FREE in 2022 ????money saving tips from a budget traveller</a> 130_a01
RodneyhAh
В нашем интернет-магазине дамы найдут классические, нарядные, спортивные, праздничные модели, демонстрирующие качества женской фигуры, а также идеально маскирующие недостатки. Самое главное, что независимо от возраста или фигуры – Вы будете чувствовать себя хорошо и привлекательно. В нашем предложении Вы найдете широкий выбор элегантной и повседневной женской одежды от 42 до 80 размера, которая позволит подчеркнуть стильные стороны женской фигуры и выразить себя через наряд.
RodneyhAh
<a href=https://bellady.by/>BELLADY.BY</a> предлагает самый большой выбор женской одежды, производимой в Республике Беларусь. Благодаря тому, что наш интернет-магазин находится в городе Брест, где работают более 200 компаний по пошиву одежды для женщин, у нас можно приобрести большинство товаров из ассортимента выпускаемой ими продукции.