Node JS - resources_by_tag Optional Parameters
I am just starting to learn both cloudinary and node JS and I'm not sure why I'm unable to override the default limit of 10 images returned by the api "resources_by_tag". Since there are no examples of how to call the optional parameters in the documentation for node JS (that I could find at least), it's quite possible that I have something wrong in the API syntax:
cloudinary.api.resources_by_tag('myTag', (pictures) => {
console.log('pictures: ', pictures);
// do something with pictures
},
{
max_results: 100,
}
);
-
Hi Daniel, Please try the following:
cloudinary.api.resources_by_tag("mytag", function(result){}, { max_results: 500 });
Please refer to the node.js examples here.
Post is closed for comments.
Comments
1 comment