Downloading Images contained within a cell.

Although I am working on PHP 8.2, I am just using APIs. So, I'll keep the specific question generic and on JSON.
The cell contains an image (png in this case). Manually, if I click on the image, it opens up a bigger version with a download button.
But, from the cell itself, I would like to perform a download through APIs. On the content within the cell, I do not see a URL or a way to download the file through API.
Any thoughts and suggestions would be greatly appreciated.
The JSON snippet of the desired cell is:
[62] => stdClass Object
(
[columnId] => 6668921772920708
[value] => sample.png
[displayValue] => sample.png
[formula] => =SYS_CELLIMAGE("sample.png","GP7ehMsDr7mpJ1DaAfWBkE",3536,2500,"sample.png")
[image] => stdClass Object
(
[id] => GP7ehMsDr7mpJ1DaAfWBkE
[height] => 3536
[width] => 2500
[altText] => sample.png
)
)
This cell (the one circled in red color) contains an image, and if I click on the image manually, it opens up the left hand side image where I can manually download.
Not sure if this is useful, but adding it as a safety measure Tags for Google search: SmartSheet API URL Link Image Download from a Cell
Answers
-
BTW, I had printed the json for the entire row (And only a snippet of that row was copied earlier in the question), and upon looking at the entirety of json, there is no URL in the entire document ! ( So, sad: curve ball? )
FYI: The images are attached onto the cells by clicking on: "Insert Image Button" on the smart sheet, like this: -
Hi @bpmuthus,
It’s possible to use the API to get a list of image URLs - check out this section of the API documentation: List Image URLs.
In terms of downloading images from cells using API, this is not listed in our documentation, but I found the following thread in the API Community which might be useful - you could also post a new thread here if this thread isn’t quite what you’re looking for.
Hope that helps!
Georgie
Need more information? 👀 | Help and Learning Center
こんにちは (Konnichiwa), Hallo, Hola, Bonjour, Olá, Ciao! 👋 | Global Discussions
Categories
- All Categories
- 14 Welcome to the Community
- Customer Resources
- 67K Get Help
- 441 Global Discussions
- 154 Industry Talk
- 502 Announcements
- 5.4K Ideas & Feature Requests
- 85 Brandfolder
- 156 Just for fun
- 79 Community Job Board
- 512 Show & Tell
- 34 Member Spotlight
- 2 SmartStories
- 307 Events
- 36 Webinars
- 7.3K Forum Archives