Create Zoom Meeting From MVC Application

Using this template helps us debug your issues more effectively :slight_smile:

Description
in client Server, creating Zoom Meeting from POSTMAN work fine but from inside MVC application,C# it gives an error.

Error
A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond 52.202.62.237:443

Which App Type (OAuth / Chatbot / JWT / Webhook)?
we tried to call the following API we used the JWT
JWT

Which Endpoint/s?
https://api.zoom.us/v2/users/me/meetings

We Used the following Code:
string ServiceUrl = API URL
HttpWebRequest req = WebRequest.Create(ServiceUrl) as HttpWebRequest;
req.ContentType = β€œapplication/json”;
req.Method = β€œPOST”;
req.Headers[β€œAuthorization”] = "Bearer " + ConfigurationManager.AppSettings[β€œZoomToken”].ToString();

using (var streamWriter = new StreamWriter(req.GetRequestStream()))
{
string json = β€œ{” +
β€œ"created_at": "” + DateTime.Now + β€œ",” +
β€œ"duration": 120,” +
β€œ"host_id": "",” +
β€œ"id": 2,” +
""join_url": +
β€œ"settings": {” +
β€œ"alternative_hosts": "",” +
β€œ"approval_type": 2,” +
β€œ"audio": "both",” +
β€œ"auto_recording": "",” +
β€œ"close_registration": false,” +
β€œ"cn_meeting": false,” +
β€œ"enforce_login": false,” + β€œ"enforce_login_domains": "",” +
β€œ"host_video": true,” +
β€œ"in_meeting": false,” +
β€œ"join_before_host": true,” +
β€œ"mute_upon_entry": false,” +
β€œ"participant_video": false,” +
β€œ"registrants_confirmation_email": true,” +
β€œ"use_pmi": false,” +
β€œ"waiting_room": false,” +
β€œ"watermark": false,” +
β€œ"registrants_email_notification": true” +
β€œ},” +
β€œ"start_time": "” + startDateTime + β€œ",” +
""start_url": "https://zoom.us/s/"," +
β€œ"status": "start",” +
β€œ"timezone": "",” +
β€œ"topic": "",” +
β€œ"type": 2,” +
β€œ"uuid": "ng1MzyWNQaObxcf3+Gfm6A=="” +
β€œ}”;

streamWriter.Write(json);
streamWriter.Flush();
streamWriter.Close();
}
var resp = req.GetResponse() as HttpWebResponse;
string responseText = string.Empty;

using (var streamReader = new StreamReader(resp.GetResponseStream()))
responseText = streamReader.ReadToEnd();

Dictionary<string, string> zoomMeetingInfo = JObject.Parse(responseText).Children().Select(jp => (JProperty)jp)
.ToDictionary(p => p.Name.ToString(), p => p.Value.ToString());

Hey @cis_m7amed88,

It sounds like this might be an environment specific issue. Is the environment you’re hosting your integration on experiencing connection issues? Have you tried searching a resource like stackoverflow, etc?

Thanks,
Will

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