Need to see if your shared folder is taking up space on your dropbox 👨💻? Find out how to check here.
Forum Discussion
SP6
4 years agoExplorer | Level 4
Re: API v2: Simple image gallery on my website using dropbox
I can't find any php sample code to help understand how to call these methods documented in the API I'd really love to use this thumbnail feature and I have the dropbox dependencies installed but can...
Greg-DB
Dropbox Community Moderator
4 years agoThanks for writing in, and for the feedback.
I understand you're interested in making a photo gallery on your web site. Dropbox does offer the Dropbox Embedder which can display a folder of photos via a shared link to the folder, but it doesn't offer custom branding. I'll pass that along as a feature request, but I can't promise if or when that might be implemented.
Alternatively, Dropbox also offers an API you can use to build a more custom integration. Dropbox doesn't offer examples for that in PHP in particular, but the HTTP documentation has examples shown in curl which you can translate that for whatever platform you need. And for prototyping and trying out specific API calls, the API v2 Explorer can be helpful. It can even show you how the request would be formatted in multiple contexts, such as in Python or raw HTTP, if you click "Show Code".
For example, you can find the documentation for /2/files/get_thumbnail_batch here, and the API v2 Explorer page for it here. Note that Dropbox API thumbnail endpoints return the thumbnails as data directly in the response, not as URLs.
Also, while Dropbox doesn't offer an SDK for PHP, there are some third party libraries that may be useful. If you choose to use a third party library, refer to its documentation for instructions on how to use it. Note that as third party libraries are not made by Dropbox, we cannot provide support for them.
If you run in to any issues with the Embedder or API feel free to share the details and we'll be happy to help however possible.
About Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.
The Dropbox Community team is active from Monday to Friday. We try to respond to you as soon as we can, usually within 2 hours.
If you need more help you can view your support options (expected response time for an email or ticket is 24 hours), or contact us on X, Facebook or Instagram.
For more info on available support options for your Dropbox plan, see this article.
If you found the answer to your question in this Community thread, please 'like' the post to say thanks and to let us know it was useful!