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.
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)
04-18-2024 10:36 AM
Have you checked https://developer.webex.com/docs/basics#message-attachments
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.
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)
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide