cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
443
Views
1
Helpful
3
Replies

How to send a random gif in a message using the API?

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)

gif-reminder.png

 

1 Accepted Solution

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)

View solution in original post

3 Replies 3

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. giphy.png

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)