How do I get the original code snippet shared on a channel?
Currently it returns
“message”: “Viraj Kanwade has sent you a code snippet”,
How do I get the original code snippet shared on a channel?
Currently it returns
“message”: “Viraj Kanwade has sent you a code snippet”,
@gianni.zoom Can you please check? Thanks
Hi @viraj.kanwade which endpoint specifically are you using? Please link it. Thanks!
Hi Gianni,
I am using the get user messages with to_channel param. f"/v2/chat/users/{zoom_user_id}/messages"
I couldn’t find any specific API for code snippets.
Hi @viraj.kanwade thank you for clarifying. Can you please share the full response you receive? Do you see any indication of file information with download url in the response schema?
Got it. It gets attached as files.
Altough little confusing structure.
There is a files array and then a file details attributes at the top level again.
‘files’: [{‘file_id’: 'XYZ,
‘file_name’: ‘Untitled.py.zip’,
‘file_size’: 1273,
‘download_url’: ‘XYZ’}],
‘file_id’: 'XYZ,
‘file_name’: ‘Untitled.py.zip’,
‘file_size’: 1273,
‘download_url’: ‘XYZ’},
@viraj.kanwade yes, this is in the documentation
Glad you were able to resolve!