- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-18-2024 10:20 AM
Any idea on how can I send a random gif in message using the API ?
This is the basic code
payload = {
"markdown": message,
"toPersonEmail": user_email,
"files": #HOW TO ADD THE RANDOM GIF ???,
}
result = requests.post(WEBEX_URL, HEADERS, json=payload)
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-18-2024 11:08 AM
Giphy seems to have an API, which you should be able to use to get a random URL or download the file locally - once you have the URL/file you can use the usual Webex message file attachment mechanism as above.
(I haven't used this API myself)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-18-2024 10:36 AM
Have you checked https://developer.webex.com/docs/basics#message-attachments
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-18-2024 10:55 AM
yup, Nothing about how to send a random gif. i can send a gif that is locally in the machine (same process that send a zip, txt, .xls etc), but no idea how can I just pick a random gif from giphy and send it. Not sure if this is possible.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-18-2024 11:08 AM
Giphy seems to have an API, which you should be able to use to get a random URL or download the file locally - once you have the URL/file you can use the usual Webex message file attachment mechanism as above.
(I haven't used this API myself)
