# Rest API error of version2

**URL:** <https://devforum.zoom.us/t/rest-api-error-of-version2/884>\
**Category:** API and Webhooks\
**Created:** [January 17, 2018, 6:11am UTC](https://devforum.zoom.us/t/rest-api-error-of-version2/884 "2018-01-17T06:11:41Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Vamsi\_Krishna\_Varma](https://avatars.discourse-cdn.com/v4/letter/v/eada6e/32.png) [@Vamsi\_Krishna\_Varma](https://devforum.zoom.us/u/Vamsi_Krishna_Varma)\
**Post date:** [January 17, 2018, 6:11am UTC](https://devforum.zoom.us/t/rest-api-error-of-version2/884/1 "2018-01-17T06:11:41Z")

</div>

## _Method Not Allowed. error&nbsp;_

&nbsp;

_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](https://api.zoom.us/v2/users/%7BuserId%7D/recordings)”, htZoomKeys);_

&nbsp;

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

---

<div class="post-metadata">

**Author:** ![Vamsi\_Krishna\_Varma](https://avatars.discourse-cdn.com/v4/letter/v/eada6e/32.png) [@Vamsi\_Krishna\_Varma](https://devforum.zoom.us/u/Vamsi_Krishna_Varma)\
**Post date:** [January 17, 2018, 6:13am UTC](https://devforum.zoom.us/t/rest-api-error-of-version2/884/2 "2018-01-17T06:13:06Z")

</div>

How to use the URL of API&nbsp;_[https://api.zoom.us/v2/users/{userId}/recordings](https://api.zoom.us/v2/users/%7BuserId%7D/recordings)&nbsp;in my application_

&nbsp;

---

<div class="post-metadata">

**Author:** ![harris\_yang](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/harris_yang/32/155_2.png) [@harris\_yang](https://devforum.zoom.us/u/harris_yang)\
**Post date:** [January 17, 2018, 7:13am UTC](https://devforum.zoom.us/t/rest-api-error-of-version2/884/3 "2018-01-17T07:13:02Z")

</div>

Need to replace the user\_id value.

---

<div class="post-metadata">

**Author:** ![Joshua\_Woodward1](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/joshua_woodward1/32/1480_2.png) [@Joshua\_Woodward1](https://devforum.zoom.us/u/Joshua_Woodward1)\
**Post date:** [January 17, 2018, 11:02pm UTC](https://devforum.zoom.us/t/rest-api-error-of-version2/884/4 "2018-01-17T23:02:08Z")

</div>

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

User ID goes in the URL not the payload

---

<div class="post-metadata">

**Author:** ![DeveloperBot](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/developerbot/32/12632_2.png) [@DeveloperBot](https://devforum.zoom.us/u/DeveloperBot)\
**Post date:** [August 21, 2020, 5:35pm UTC](https://devforum.zoom.us/t/rest-api-error-of-version2/884/5 "2020-08-21T17:35:39Z")

</div>

Closed on August 21, 2020, 5:35pm UTC


