How can i return all images from given folder using Javascript
From the docs I was able to console the results using the following:
cloudinary.v2.api.resources(
function(error, result) {console.log(result, error); });
How can I now return the results to a given variable?
0
-
Hi,
When extracting the list of delivery URLs from the get resources method, you will need to parse the response JSON when it is returned. Here is a sample implementation for retrieving the list of the delivery URL and save them on a file: https://jsfiddle.net/ecpdev/h09mjnLa/1/
Hope this helps.
0 -
Hello! Thank you for your response. I now see what I was doing wrong which is running fetch functions in React, which do not use Nodejs. After using node with fetch functions, it worked nice.
0
Post is closed for comments.
Comments
2 comments