<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Download Images uploaded to webex (to a Chatbot account) using API in Webex for Developers</title>
    <link>https://community.cisco.com/t5/webex-for-developers/download-images-uploaded-to-webex-to-a-chatbot-account-using/m-p/5112987#M3086</link>
    <description>&lt;P&gt;Hi &lt;a href="https://community.cisco.com/t5/user/viewprofilepage/user-id/1323322"&gt;@sandiban&lt;/a&gt; ,&lt;BR /&gt;&lt;BR /&gt;Thanks for the response,&amp;nbsp; I am able to download the Files (Including the Images) using the Above method (Ie. First get the message details, then get the File location from the message details)..&lt;BR /&gt;&lt;BR /&gt;However, The issue is, If a user uploads Any non Image file.. We get the Message details like below.. (Through the pre established Websocket) , From which&amp;nbsp; we can directly get the file link.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="santoshav_0-1716368927063.png" style="width: 400px;"&gt;&lt;img src="https://community.cisco.com/t5/image/serverpage/image-id/218901iE752A3667AA1FC6A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="santoshav_0-1716368927063.png" alt="santoshav_0-1716368927063.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;However, When an Image is uploaded, We do not get such details Insted, We will get message details like below in which There is no Message ID or the File path..&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="santoshav_1-1716369287853.png" style="width: 400px;"&gt;&lt;img src="https://community.cisco.com/t5/image/serverpage/image-id/218902i58EB0241EB1E34F0/image-size/medium?v=v2&amp;amp;px=400" role="button" title="santoshav_1-1716369287853.png" alt="santoshav_1-1716369287853.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;, So We will have to Check the list of messages separately again to get the file name.&lt;BR /&gt;&lt;BR /&gt;I would like to Get the Link for the Images (Or at least the Message Id information) from the websocket message from Webex (Just like Shown in Image 1 for other file types).&lt;BR /&gt;&lt;BR /&gt;Thanks again for the Previous reply.&lt;/P&gt;</description>
    <pubDate>Wed, 22 May 2024 09:17:41 GMT</pubDate>
    <dc:creator>santosha v</dc:creator>
    <dc:date>2024-05-22T09:17:41Z</dc:date>
    <item>
      <title>Download Images uploaded to webex (to a Chatbot account) using APIs</title>
      <link>https://community.cisco.com/t5/webex-for-developers/download-images-uploaded-to-webex-to-a-chatbot-account-using/m-p/5112729#M3066</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;How to download Images uploaded to webex (to a Chatbot account) using API call?&lt;BR /&gt;I am able to download other Files uploaded to Webex (Like txt,docx etc..) using the "Files" Element details I get while user uploads a file, However, When user uploads Image There is no such Element preset.&lt;BR /&gt;&lt;BR /&gt;From the "Browser I am able to Find out It is making about 4 API calls to download an Image, However, I am unable to replicate the same Via Postman or code (Python).&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image.png" style="width: 999px;"&gt;&lt;img src="https://community.cisco.com/t5/image/serverpage/image-id/218870i4ABC4FB88AE49E37/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;BR /&gt;Any Lead on how to download the same would be appropriated.&lt;/P&gt;</description>
      <pubDate>Wed, 22 May 2024 04:47:36 GMT</pubDate>
      <guid>https://community.cisco.com/t5/webex-for-developers/download-images-uploaded-to-webex-to-a-chatbot-account-using/m-p/5112729#M3066</guid>
      <dc:creator>santosha v</dc:creator>
      <dc:date>2024-05-22T04:47:36Z</dc:date>
    </item>
    <item>
      <title>Re: Download Images uploaded to webex (to a Chatbot account) using API</title>
      <link>https://community.cisco.com/t5/webex-for-developers/download-images-uploaded-to-webex-to-a-chatbot-account-using/m-p/5112833#M3077</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.cisco.com/t5/user/viewprofilepage/user-id/1736376"&gt;@santosha v&lt;/a&gt;,&lt;BR /&gt;Could you kindly share which API you're using here?&lt;BR /&gt;I believe you're possibly trying to get the details of the message through list-message API -&amp;nbsp;&lt;A href="https://developer.webex.com/docs/api/v1/messages/list-messages" target="_blank"&gt;https://developer.webex.com/docs/api/v1/messages/list-messages&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Correct me if I'm wrong!&lt;/P&gt;
&lt;P&gt;So, when it's about an image download - in the API response, you should be able to find a response parameter called "files".&lt;BR /&gt;And the value of this "files" parameter should be like "&lt;SPAN&gt;&lt;A href="https://webexapis.com/v1/contents/Y2lzY29zcGFyazovL3VzL0NPTlRFTlQvND" target="_blank"&gt;https://webexapis.com/v1/contents/Y2lzY29zcGFyazovL3VzL0NPTlRFTlQvND&lt;/A&gt;...&lt;/SPAN&gt;"&lt;/P&gt;
&lt;P&gt;Now you can run this "files" parameter value which is nothing but a API URL again from POSTMAN or, through your Code and you should be able to view the image and even download it from there with the help of your code.&lt;BR /&gt;Now, please note - Webex message API only supports &lt;EM&gt;.jpeg&lt;/EM&gt;, &lt;EM&gt;.jpg&lt;/EM&gt; and &lt;EM&gt;.png&lt;/EM&gt; type only and it also supports &lt;EM&gt;.gif&lt;/EM&gt; as well. More you can read from here about supported message attachments format -&amp;nbsp;&lt;A href="https://developer.webex.com/docs/basics#message-attachments" target="_blank"&gt;https://developer.webex.com/docs/basics#message-attachments&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Please check if your image is about any other format type, then it won't be supported though.&lt;/P&gt;
&lt;P&gt;Regards!&lt;BR /&gt;Sandip&lt;/P&gt;</description>
      <pubDate>Wed, 22 May 2024 06:53:26 GMT</pubDate>
      <guid>https://community.cisco.com/t5/webex-for-developers/download-images-uploaded-to-webex-to-a-chatbot-account-using/m-p/5112833#M3077</guid>
      <dc:creator>sandiban</dc:creator>
      <dc:date>2024-05-22T06:53:26Z</dc:date>
    </item>
    <item>
      <title>Re: Download Images uploaded to webex (to a Chatbot account) using API</title>
      <link>https://community.cisco.com/t5/webex-for-developers/download-images-uploaded-to-webex-to-a-chatbot-account-using/m-p/5112987#M3086</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.cisco.com/t5/user/viewprofilepage/user-id/1323322"&gt;@sandiban&lt;/a&gt; ,&lt;BR /&gt;&lt;BR /&gt;Thanks for the response,&amp;nbsp; I am able to download the Files (Including the Images) using the Above method (Ie. First get the message details, then get the File location from the message details)..&lt;BR /&gt;&lt;BR /&gt;However, The issue is, If a user uploads Any non Image file.. We get the Message details like below.. (Through the pre established Websocket) , From which&amp;nbsp; we can directly get the file link.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="santoshav_0-1716368927063.png" style="width: 400px;"&gt;&lt;img src="https://community.cisco.com/t5/image/serverpage/image-id/218901iE752A3667AA1FC6A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="santoshav_0-1716368927063.png" alt="santoshav_0-1716368927063.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;However, When an Image is uploaded, We do not get such details Insted, We will get message details like below in which There is no Message ID or the File path..&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="santoshav_1-1716369287853.png" style="width: 400px;"&gt;&lt;img src="https://community.cisco.com/t5/image/serverpage/image-id/218902i58EB0241EB1E34F0/image-size/medium?v=v2&amp;amp;px=400" role="button" title="santoshav_1-1716369287853.png" alt="santoshav_1-1716369287853.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;, So We will have to Check the list of messages separately again to get the file name.&lt;BR /&gt;&lt;BR /&gt;I would like to Get the Link for the Images (Or at least the Message Id information) from the websocket message from Webex (Just like Shown in Image 1 for other file types).&lt;BR /&gt;&lt;BR /&gt;Thanks again for the Previous reply.&lt;/P&gt;</description>
      <pubDate>Wed, 22 May 2024 09:17:41 GMT</pubDate>
      <guid>https://community.cisco.com/t5/webex-for-developers/download-images-uploaded-to-webex-to-a-chatbot-account-using/m-p/5112987#M3086</guid>
      <dc:creator>santosha v</dc:creator>
      <dc:date>2024-05-22T09:17:41Z</dc:date>
    </item>
    <item>
      <title>Re: Download Images uploaded to webex (to a Chatbot account) using API</title>
      <link>https://community.cisco.com/t5/webex-for-developers/download-images-uploaded-to-webex-to-a-chatbot-account-using/m-p/5113732#M3088</link>
      <description>&lt;P&gt;As accessing Webex API messaging events via websocket is only supported if using the official JavaScript SDKs, it's likely the Webex engineers will be precluded from being much help &lt;LI-EMOJI id="lia_confused-face" title=":confused_face:"&gt;&lt;/LI-EMOJI&gt;&lt;/P&gt;
&lt;P&gt;As you seem to be using the unofficial/community &lt;A href="https://github.com/fbradyirl/webex_bot" target="_self"&gt;webex_bot&lt;/A&gt; Python project to do the websocket stuff, you may need to inquire with the maintainer/contributors there (and be aware that things built using an unsupported SDK may break at any point without warning, and Webex will not be able to engage for troubleshooting/fixes.)&lt;/P&gt;
&lt;P&gt;If using one of the JS SDKs is not possible, you might look at the &lt;A href="https://github.com/WebexSamples/hookbuster" target="_self"&gt;Hookbuster&lt;/A&gt; project, which is based on the JS SDK and acts like a transparent websocket&amp;lt;-&amp;gt;HTTP proxy in front of your app (which can be Python or anything else...)&lt;/P&gt;</description>
      <pubDate>Wed, 22 May 2024 21:27:35 GMT</pubDate>
      <guid>https://community.cisco.com/t5/webex-for-developers/download-images-uploaded-to-webex-to-a-chatbot-account-using/m-p/5113732#M3088</guid>
      <dc:creator>dstaudt</dc:creator>
      <dc:date>2024-05-22T21:27:35Z</dc:date>
    </item>
  </channel>
</rss>

