Method Not Allowed. error
Hashtable htZoomKeys = new Hashtable();
htZoomKeys.Add(“userId”, dt_hostids.Rows[i][“hostid”].ToString());
htZoomKeys.Add(“from”, “16/01/2018”);
htZoomKeys.Add(“to”, “17/01/2018”);
byte[] responseData = getZoomData(“https://api.zoom.us/v2/users/{userId}/recordings”, htZoomKeys);
byte responsebytes;
public byte getZoomData(string URL, Hashtable htKeys)
{
using (WebClient client = new WebClient())
{
System.Collections.Specialized.NameValueCollection reqparm = new System.Collections.Specialized.NameValueCollection();
reqparm.Add(“access_token”, accesstoken);
reqparm.Add(“data_type”, “XML”);
if (htKeys.Count > 0)
{
foreach (DictionaryEntry entry in htKeys)
{
reqparm.Add(entry.Key.ToString(), entry.Value.ToString());
}
}
responsebytes = client.UploadValues(URL, “POST”, reqparm);
//responsebody = Encoding.UTF8.GetString(responsebytes);
//responsebody = responsebody.Replace(""", “”);
//responsebody = responsebody.Replace("{", “”);
//responsebody = responsebody.Replace("}", “”);
//string words = responsebody.Split(’,’);
}
return responsebytes;
}