<?php 
    include('config.php');
    include('api.php');

print_r($details);
if(isset($_REQUEST['start_date']))
{

   $arr['topic']=$_REQUEST['topic'];
    $arr['start_date']= date($_REQUEST['start_date'].''. $_REQUEST['start_time']);
    $arr['duration']=30;
    $arr['password']='test';
    //$arr['type']='3'; /* 2 - scheduled...3 recurring meeting with no fixed time */
    $result=createMeeting($arr);
     print_r($result);
    if(isset($result->id)){
    	echo "Join Meeting: <a href='".$result->join_url."' target = '_blank'><button>Join</button></a><br/>";
    	echo "Password: ".$result->password."<br/>";
    	echo "Start Time: ".$result->start_time."<br/>";
    	echo "Duration: ".$result->duration."<br/>";
    }else{
    	echo '<pre>';
    	print_r($result);
    }
}
?>