zoomus icon indicating copy to clipboard operation
zoomus copied to clipboard

List of recordings requires a 'from' parameter incompatible with Python

Open gregorydlogan opened this issue 5 years ago • 1 comments

Per https://marketplace.zoom.us/docs/api-reference/zoom-api/cloud-recording/recordingslist, if you don't include the from parameter in the REST call you get a default of yesterday. I wanted more like a week, so I tried this:

recordings_response = self.zoom_client.recording.list(user_id=user_id, mc="false", page_size=30, trash_type="meeting_recordings", from="2020-01-01")

which obviously doesn't work. Attempting to use from_ instead also did not work. This does, at the cost of legibility

recordings_response = self.zoom_client.recording.list(user_id=user_id, mc="false", page_size=30, trash_type="meeting_recordings", **{"from": "2020-01-01"})

Resolution: Bake in from_ support, or some other kind of parameter renaming.

gregorydlogan avatar Aug 31 '20 21:08 gregorydlogan

for future readers, this also works and could appear pretty conventional (though yes, this seems like an odd thing to have no guidance on:

options = {
  'user_id': user_id,
  'mc': 'false',
  'page_size': 30,
  'trash_type': 'meeting_recordings',
  'from': '2020-01-01',
}
recordings_response = self.zoom_client.recording.list(**options)

patcon avatar May 10 '21 05:05 patcon