How to use zoom api for creating meeting step by step in php

step by step integrate zoom api for creating meeting using php codeigniter step by step

@asifansari,

Welcome to the Zoom Developer Forum – happy to help. Can you share more details about what you are trying to accomplish? This will help us better support and guide you to a solution.

That aside, here is an example of how to Create a Zoom Meeting using PHP:

$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => "https://api.zoom.us/v2/users/{userId}/meetings",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 0,
  CURLOPT_FOLLOWLOCATION => true,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "POST",
  CURLOPT_POSTFIELDS =>"{\r\n  \"agenda\": \"My Meeting\",\r\n  \"default_password\": false,\r\n  \"duration\": 60,\r\n  \"password\": \"123456\"\r\n}",
  CURLOPT_HTTPHEADER => array(
    "Authorization: Bearer  {YOUR TOKEN HERE}",
    "Content-Type: application/json"
  ),
));

$response = curl_exec($curl);

curl_close($curl);
echo $response;
1 Like

Hey, is this still up to date?
We are switching from jitsi to zoom and have a automated script, that generates meeting links to be sent by mail. In jitsi its ver simple, the link/the meeting does not need to be regstered on the server side (means i just generate a link like

https://meet.jit.si/XYZ123

and it works). The script is running under an php-cli on a windows machine. I found many examples that make use of JWT and PHP, etc, but i found this complicated with the php-cli, but this example seems to need only curl/libcurl? If this is still working it would be great!

Regards Florian

Next question would be: Where can I get this token?
Regards Florian

@asifansari,

Thank you for your question! To get the access token, you need to make Post to Zoom Authorize endpoint. Down below I’ve linked the support documentation for getting started with Zoom APIs. You will find examples of how to get an Access token for Zoom Rest APIs. Take a look and let us know if you have any questions.

https://developers.zoom.us/docs/api/rest/using-zoom-apis/