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.