How zoom rest api accepts data?


#1

If I pass data in query string then it works fine. But if I pass data in body then it doesn’t work. Screen shots are from POSTMAN.

Following one worked -:

https://api.zoom.us/v1/user/getbyemail?api_key=xxxxxx&api_secret=xxxxxx&email=email@domain.com.

Following not worked -:

Method : POST

URL -: https://api.zoom.us/v1/user/getbyemail

data: {“api_key”:“xxxxxxxxx”,“api_secret”:“xxxxxxxx”,"":“email”:“email@domain.com”}

May I know how zoom rest api accepts data? i.e in body, header or only in query string?


#2

Hi Priyank,

The API accepts POST form url encoded data. Not sure, without looking at the code, why the first way works because it should be in the form data (body) and not the query string.

The second example does not work because you are trying to post raw data, a json object it looks like.

The best way in postman is in the example below


#3

Hi Joshua,

      Thanks a lot. It worked fine now. Actually previously I was sending data in JSON format. After changing content type to “application/x-www-form-urlencoded” it worked fine.

Previously I have tried -:

request.ContentType = “application/text” and request.ContentType = “application/json”

After using following it worked fine -:

request.ContentType = “application/x-www-form-urlencoded”;

Best regards

Priyank