Sample code for c#

I need to integrate Zoom with Altitude CRM. I am using C# for integration. Can I get sample code for c#. Thanks

Hi Dnyati,

Thanks for the question. Zoom currently doesn’t have official sample code for C#.

However the API is a RESTful interface, you can use the following for sample https://www.codeproject.com/Tips/497123/How-to-make-REST-requests-with-Csharp to get started

Hi,

I tried as per the link provided by you. Below is my code:

string endPoint = @"https://api.zoom.us/v1/meeting/create";          

            var client = new RestClient();

            client.EndPoint = endPoint;

            client.Method = HttpVerb.POST;

            string PostData = new JavaScriptSerializer().Serialize(new

            {

                api_key = “_5qbrcDkRQWb7HfQkTrhPA”,

                api_secret = “c25ndItvjwuROTcv2t1IgMQ6tvrN7dRpst4n”,

                data_type = “JSON”,

                host_id = “GC5g5_4-SI6OduvEN0Z5uQ”,

                topic = “Altitude”,

                type = “1”,

                registration_type = “1”,

                option_audio = “both”,

                option_auto_record_type = “local”

            });

            txtRequest.Text = PostData;

            client.PostData = PostData;

            var json = client.MakeRequest();

            txtResponse.Text = json;

 

I also have Rest client class as per reference link.  I get below response when I post the request :

{“error”:{“code”:300,“message”:“Api key and secret are required.”}}

 

I also tried below code to post the request :

 

  HttpWebRequest request = (HttpWebRequest)WebRequest.Create(“https://api.zoom.us/v1/meeting/create”);

 

            request.Method = “POST”;

            request.KeepAlive = true;

            request.ContentType = “application/x-www-form-urlencoded; charset=UTF-8”;

            using (StreamWriter streamWriter = new StreamWriter(request.GetRequestStream()))

            {

                string PostData = new JavaScriptSerializer().Serialize(new

                {

                    api_key = “_5qbrcDkRQWb7HfQkTrhPA”,

                    api_secret = “c25ndItvjwuROTcv2t1IgMQ6tvrN7dRpst4n”,

                    data_type = “JSON”,

                    host_id = “GC5g5_4-SI6OduvEN0Z5uQ”,

                    topic = “Altitude”,

                    type = “1”,

                    registration_type = “1”,

                    option_audio = “both”,

                    option_auto_record_type = “local”

                });

                streamWriter.Write(PostData);

                txtRequest.Text = PostData;

            }

 

            var httpResponse = (HttpWebResponse)request.GetResponse();

            using (var streamReader = new StreamReader(httpResponse.GetResponseStream()))

            {

                var result = streamReader.ReadToEnd();

                txtResponse.Text = result;

            }

 

 

Here also I am receiving same message. Kindly let me know if I miss anything while posting Request. Thanks

   

Hello, Dnyati Ganesan
create meeting API integration is working but web panel upcoming Meetings not showing https://zoom.us/meeting

Hi @augursmail,

Let us know if you have a question we can help with.

Thanks,
Will

Do we have any example to show zoom webnair Streaming in website. How to get Streaming Url of website.

Appreciate help!!

Hey @ajha,

Good question—in fact we do!

You can leverage our Livestreaming capability here:

And you can retrieve the stream URL programmatically using this endpoint:

Hope this helps!

Best,
Will