Cloudinary Cloud Image API






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






Post a Comment

Mới hơn Cũ hơn