no se puede obtener una imagen privada
i was keeping some pictures from nodejs, a whole exist but now I want to get the image from node. the image was saved privately capture and save the public_id that is in "Private / cb9oymqywm5wnyjiadddv" format, I'm trying to get the image using the api
cloudinary.api.resource(req.query.id, {type: "private"},function(result) {
console.log(result)
res.send(200, {
status: 200,
data: result
})
});
the message that returns me is
1
-
The syntax that should be used for the resource API is a bit different. Assuming 'req.query.id' returns with a valid public ID string, the following should work:
cloudinary.api.resource(req.query.id, function(result){
console.log(result)
}, { type: 'private' });0
Post is closed for comments.
Comments
1 comment