Rest API error of version2

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;
}

How to use the URL of API https://api.zoom.us/v2/users/{userId}/recordings in my application

 

Need to replace the user_id value.

htZoomKeys.Add(“userId”, dt_hostids.Rows[i][“hostid”].ToString());

User ID goes in the URL not the payload