- Back to Home »
- Cloudinary »
- Cloudinary Cloud Image API
Thursday, February 20, 2020
1.Install
npm install cloudinary
2.API
https://cloudinary.com/documentation/cloudinary_references
nodejs example:
var cloudinary = require('cloudinary').v2;
cloudinary.config({
cloud_name: 'anhcuatui',
api_key: '28648234628',
api_secret: 'sdfkhksdjweuhuidshfuisdsfu'
});
//upload image
cloudinary.uploader.upload("girl.jpg", function(error, result) {console.log(result, error)});
//get all resource
cloudinary.api.resources(function(error, result) {console.log(result, error); });
Note:
cloud_name, api_key, api_secret information