Delete meeting through Api?

i use this in php . to create room, how could i delete room with this ?

function addLessonOnZoom($title,$start_at,$duration=null){

$api_secret = '';

$api_key = '';

$payload = array(

    'iss' => $api_key,

    'exp' => (time() + 260),

    'topic' => $title,

    "type" => 2,

    "start_time" => $start_at,

    "duration" => $duration,

    "password" => "121212",

    "host" => "fred",

);

$jwt = '..-';



$client = new \GuzzleHttp\Client(['base_uri' => 'https://api.zoom.us/v2/']);

$headers = [

    'Authorization' => 'Bearer ' . $jwt,

    'Accept' => 'application/json',

    'content-type' => 'application/json',

];

$response = $client->request('POST', 'users/me/meetings', [

    'json' => $payload,

    'headers' => $headers,

    'http_errors' => false,

    'Content-Type' => "application/json",

    'Accept' => '*/*',

])->getBody()->getContents();

$res = (array) json_decode($response);



return $res ;

}

Hey @amin.amr.55,

You can use the Delete Meeting API:

NOTE: Please do not post your API Secrets or JWT Token on this public forum. I have deleted them from your post.

Thanks,
Tommy

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.