Hi,
I am trying to get list of folders in my cloudinary:
in my api controller I have:
[AllowAnonymous]
[HttpGet("folders/")]
public string GetFolders()
{
Cloudinary cloudinary = new Cloudinary();
return cloudinary.RootFolders().ToString();
}
and in my api service i have:
public PhotoService(IConfiguration config)
{
Account account = new Account(
config.GetSection("CloudinarySettings:CloudName").Value,
config.GetSection("CloudinarySettings:ApiKey").Value,
config.GetSection("CloudinarySettings:ApiSecret").Value
);
cloudinary = new Cloudinary(account);
}
I am getting this error:
"errorCode": 500,
"errorMessage": "Invalid CLOUDINARY_URL scheme. Expecting to start with 'cloudinary://'",
"errorDetails": " at CloudinaryDotNet.ApiShared..ctor(String cloudinaryUrl)\r\n
at CloudinaryDotNet.Api..ctor()\r\n at CloudinaryDotNet.Cloudinary..ctor()\r\n
at WebAPI.Controllers.FamilyDocumentsController.GetFolders()
at lambda_method2(Closure, Object, Object[])\r\n
at Microsoft.AspNetCore.Mvc.Infrastructure.ActionMethodExecutor.