End Meeting not working


#1

I want to end my meeting through API call but its not working, i am using following data-

$ch = curl_init();

curl_setopt($ch, CURLOPT_URL, “https://api.zoom.us/v2/meetings/{meeting_id}/status/”);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS, $postFields);
curl_setopt($ch, CURLOPT_POST, 1);
/* curl_setopt($ch, CURLOPT_HTTPHEADER, array(
‘Authorization: Bearer’ . $this->generateJWT()
)); */

$headers = array();
$headers = “Content-Type: application/x-www-form-urlencoded”;
$headers = ‘Authorization: Bearer’ . $this->generateJWT();

curl_setopt($ch, CURLOPT_HTTPHEADER, $headers);

$result = curl_exec($ch);

 

Response coming to me is-

405 Method Not Allowed


#2

Hi, I want to make sure that when you call the api do you input the meeting id?

I see that you call the url https://api.zoom.us/v2/meetings/{meeting_id}/status/. Actually that you should replace the {meeting_id} to the real meeting id.


#3

We are using the same after updating {meeting_id} in URL.

Find below URL :

https://api.zoom.us/v2/meetings/275353260/status/


#4

Try using “application/json” as the content type  and supplying “{ ‘action’: ‘end’}” as the body.   This returns a 204 code (successful operation with no return content) but, for me at least, doesn’t seem to actually end the meeting.    

If anyone knows how to actually end a meeting through the API, please let me know!


#5

Hi Stephen, 

Is the error still reoccurring for you?

Thanks