"Validation Failed" on test connection with API

Getting error on initial connection with API, based on code at https://marketplace.zoom.us/docs/api-reference/using-zoom-apis

{"code":300,"message":"Validation Failed.","errors":[{"field":"action","message":"Missing field."},{"field":"user_info","message":"Missing Object."}]}

I am using the following code in Classic ASP/VBscript :sweat_smile:

str = "{""status"":""active"", ""page_size"":""30""}"
Set oXMLHTTP = Server.CreateObject("MSXML2.ServerXMLHTTP")
oXMLHTTP.Open "POST", "https://api.zoom.us/v2/users", False
oXMLHTTP.setRequestHeader "Accept", "application/json"   
oXMLHTTP.setRequestHeader "Content-Type", "application/json"
oXMLHTTP.setRequestHeader "Authorization", "Bearer  aaa.bbb.ccc"
oXMLHTTP.send str

response.write " response:<textarea style='width: 100%; padding: 20px;'>" & oXMLHTTP.responseText &"</textarea>"

Set oXMLHTTP = nothing 	

The code is evidently connecting and validating fine on the authentication level (JWT dev token), but i assume there is some parameter missing in the request.

TIA for your help.

1 Like

Fixed. For others who might come across this: Method needed to be GET, not POST.

1 Like

Hey @coda,

Happy to hear you figured it out, and thanks for sharing your solution!


1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.