How zoom rest api accepts data?

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 -:

Following not worked -:

Method : POST

URL -:

data: {“api_key”:“xxxxxxxxx”,“api_secret”:“xxxxxxxx”,"":“email”:“”}

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

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

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