Cloudinary core
This is a direct port from CloudinaryDotNet official nuget package. so namespaces are the same, and all code should be the same.
- Cloudinary.Core => main package
- Cloudinary.Core.Sync => Package containing original (not async) api calls.
- Cloudinary.Core.DependencyInjection => containing simple helper methods to add Cloudinary as dependency.
Usages
var client = new Cloudinary("cloudinary://urlFromYourDashboard");
var sample = Cloudinary.GetResource("sample");
depdency DependencyInjection
IServiceCollection services.AddCloudinary(); //will get CLOUDINARY_URL env variable for authentication
//or services.AddCloudinary(new Account(user, key));
var sample = Cloudinary.GetResource("sample");
//It will get injected in constructor now.
constructor(Cloudinary cloudinary){
cloudinary.DoApiCall();
}
Contributing
Contributions are welcome, for and make a pull request as you wish.
This repo uses node npm package.json scripts for easy build and packing without ide, but you'll need to have installed node on your system.
npm run build #builds all non test projects
npm test #tests all projects
npm run pack #creates nuget packages in git root.