How to use the cloudinary.v2.api function in cloudinary

To help you get started, we’ve selected a few cloudinary examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github cloudinary / cloudinary_npm / samples / photo_album / controllers / photos_controller.js View on Github external
.then(function (preset) {
      if (!preset.settings.return_delete_token) {
        return cloudinary.api.update_upload_preset(preset_name, { return_delete_token: true });
      }
      return undefined;
    })
    .catch(function (err) {
github cloudinary / cloudinary_npm / samples / photo_album / controllers / photos_controller.js View on Github external
.then(function () {
      return cloudinary.api.upload_preset(preset_name);
    })
    .then(function (preset) {