I’m finally updating our meeting download scripts from v1 to v2, and am having problems retrieving recording lists.
I’ve got the JWT created, retrieved the list of user id’s via /v2/users, but when I try to use the v2/users//recordings endpoint, it always returns the default timeframe of yesterday → today (with no records, which is probably correct).
I’m certain I’m making an elementary mistake but just can’t see it.
We’re using curl via bash shell script.
Here’s a couple of the variations I’ve tried:
response=$(curl https://api.zoom.us/v2/users/$host_id/recordings \
-X GET \
-d alg='HS256' \
-d typ='JWT' \
-H "$authstring" \
--header 'content-type: application/json' \
--data '{"from":"2020-01-01","to":"2020-01-20"}'
)
response=$(curl https://api.zoom.us/v2/users/$host_id/recordings \
-X GET \
-d alg='HS256' \
-d typ='JWT' \
-d from='2020-01-01' \
-d to='2020-01-20' \
-H "$authstring")
It’s Feb 3rd 2021 today - both of those return $response of
{"from":"2021-02-02","to":"2021-02-03","page_count":0,"page_size":0,"total_records":0,"next_page_token":"","meetings":[]}
Thanks