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;