i am using the below curl method to get the logs for specific date range
curl -X GET “https://api.zoom.us/v2/report/operationlogs” -H “Authorization: Bearer Token” -H “Content-Type: application/json” -d “{“from”: “23-12-05”, “to”: “2023-12-06”}”
below output is what i am receiving
{“from”:“2023-12-20”,“to”:“2023-12-21”,“page_size”:30,“next_page_token”:“”,“operation_logs”:}
So, problem is with output data what i am receiving is different data according the date parameters i have passed in the method.
with above curl method i am getting recent generate logs only instead of the date parameter i have passed method
Hi @roshan.jangid
Change to four year date for your “from” parameter. It has to be in ‘yyyy-mm-dd’ format otherwise it will overwrite your inputs.
HI @gianni.zoom
Sorry that’s a typo error only in the description. the problem is same with ‘yyyy-mm-dd’ format
Hi @roshan.jangid ,
Okay I noticed something else.
I’m not a bash scripting expert, but it may be how the query parameters are in the request. From further research, if using -d, for GET requests, it’s recommended to put each parameter as a separate -d instance:
Alternatively, try this with the query parameters appended to the url:
curl -X GET "https://api.zoom.us/v2/report/operationlogs?from=2023-12-05&to=2023-12-06" -H "Authorization: Bearer <<YOUR TOKEN>>" -H "Accept: application/json"