Example #1
0
 /// <summary>
 /// Creates the Meeting
 /// </summary>
 /// <param name="MeetingName">Creates the Meeting with the Specified MeetingName</param>
 /// <param name="MeetingId">Creates the Meeting with the Specified MeetingId</param>
 /// <param name="attendeePw">Creates the Meeting with the Specified AttendeeePassword</param>
 /// <param name="moderatorPw">Creates the Meeting with the Specified ModeratorPassword</param>
 /// <returns></returns>
 public DataTable CreateMeeting(string MeetingName, string MeetingId, string attendeePw, string moderatorPw)
 {
     try
     {
         var strParameters = "name=" + MeetingName + "&meetingID=" + MeetingId + "&attendeePW=" + attendeePw +
                             "&moderatorPW=" + moderatorPw;
         var strSha1CheckSum = ClsData.GetSha1("create" + strParameters + StrSalt);
         var request         =
             (HttpWebRequest)WebRequest.Create(StrServerIpAddress + "api/create?" + strParameters +
                                               "&checksum=" + strSha1CheckSum);
         var response = (HttpWebResponse)request.GetResponse();
         var sr       = new StreamReader(response.GetResponseStream());
         var ds       = new DataSet("DataSet1");
         ds.ReadXml(sr);
         return(ds.Tables[0]);
     }
     catch (Exception ex)
     {
         _objclsLog.Write(ex.Message);
         return(null);
     }
 }