congrats Icon
New! Tabnine Pro 14-day free trial
Start a free trial
Tabnine Logo
Util.timestamp
Code IndexAdd Tabnine to your IDE (free)

How to use
timestamp
method
in
com.cloudinary.Util

Best Java code snippets using com.cloudinary.Util.timestamp (Showing top 8 results out of 315)

origin: com.cloudinary/cloudinary-core

public void signRequestParams(Map<String, Object> params, Map options) {
  if (!params.containsKey("timestamp"))
    params.put("timestamp", Util.timestamp());
  cloudinary.signRequest(params, options);
}
origin: cloudinary/cloudinary_java

public void signRequestParams(Map<String, Object> params, Map options) {
  if (!params.containsKey("timestamp"))
    params.put("timestamp", Util.timestamp());
  cloudinary.signRequest(params, options);
}
origin: com.cloudinary/cloudinary-core

public String privateDownload(String publicId, String format, Map<String, Object> options) throws Exception {
  Map<String, Object> params = new HashMap<String, Object>();
  params.put("public_id", publicId);
  params.put("format", format);
  params.put("attachment", options.get("attachment"));
  params.put("type", options.get("type"));
  params.put("expires_at", options.get("expires_at"));
  params.put("timestamp", Util.timestamp());
  signRequest(params, options);
  return buildUrl(cloudinaryApiUrl("download", options), params);
}
origin: cloudinary/cloudinary_java

public String privateDownload(String publicId, String format, Map<String, Object> options) throws Exception {
  Map<String, Object> params = new HashMap<String, Object>();
  params.put("public_id", publicId);
  params.put("format", format);
  params.put("attachment", options.get("attachment"));
  params.put("type", options.get("type"));
  params.put("expires_at", options.get("expires_at"));
  params.put("timestamp", Util.timestamp());
  signRequest(params, options);
  return buildUrl(cloudinaryApiUrl("download", options), params);
}
origin: com.cloudinary/cloudinary-core

public String zipDownload(String tag, Map<String, Object> options) throws Exception {
  Map<String, Object> params = new HashMap<String, Object>();
  params.put("timestamp", Util.timestamp());
  params.put("tag", tag);
  Object transformation = options.get("transformation");
  if (transformation != null) {
    if (transformation instanceof Transformation) {
      transformation = ((Transformation) transformation).generate();
    }
    params.put("transformation", transformation.toString());
  }
  params.put("transformation", transformation);
  signRequest(params, options);
  return buildUrl(cloudinaryApiUrl("download_tag.zip", options), params);
}
origin: cloudinary/cloudinary_java

public String zipDownload(String tag, Map<String, Object> options) throws Exception {
  Map<String, Object> params = new HashMap<String, Object>();
  params.put("timestamp", Util.timestamp());
  params.put("tag", tag);
  Object transformation = options.get("transformation");
  if (transformation != null) {
    if (transformation instanceof Transformation) {
      transformation = ((Transformation) transformation).generate();
    }
    params.put("transformation", transformation.toString());
  }
  params.put("transformation", transformation);
  signRequest(params, options);
  return buildUrl(cloudinaryApiUrl("download_tag.zip", options), params);
}
origin: com.cloudinary/cloudinary-core

@SuppressWarnings({"rawtypes", "unchecked"})
public static final Map<String, Object> buildArchiveParams(Map options, String targetFormat) {
  Map<String, Object> params = new HashMap<String, Object>();
  if (options != null && options.size() > 0){
    params.put("type", options.get("type"));
    params.put("mode", options.get("mode"));
    params.put("target_format", targetFormat);
    params.put("target_public_id", options.get("target_public_id"));
    putBoolean("flatten_folders", options, params);
    putBoolean("flatten_transformations", options, params);
    putBoolean("use_original_filename", options, params);
    putBoolean("async", options, params);
    putBoolean("keep_derived", options, params);
    params.put("notification_url", options.get("notification_url"));
    putArray("target_tags", options, params);
    putArray("tags", options, params);
    putArray("public_ids", options, params);
    putArray("prefixes", options, params);
    putEager("transformations", options, params);
    putObject("timestamp", options, params, Util.timestamp());
    putBoolean("skip_transformation_name", options, params);
    putBoolean("allow_missing", options, params);
    putObject("expires_at", options, params);
  }
  return params;
}
origin: cloudinary/cloudinary_java

@SuppressWarnings({"rawtypes", "unchecked"})
public static final Map<String, Object> buildArchiveParams(Map options, String targetFormat) {
  Map<String, Object> params = new HashMap<String, Object>();
  if (options != null && options.size() > 0){
    params.put("type", options.get("type"));
    params.put("mode", options.get("mode"));
    params.put("target_format", targetFormat);
    params.put("target_public_id", options.get("target_public_id"));
    putBoolean("flatten_folders", options, params);
    putBoolean("flatten_transformations", options, params);
    putBoolean("use_original_filename", options, params);
    putBoolean("async", options, params);
    putBoolean("keep_derived", options, params);
    params.put("notification_url", options.get("notification_url"));
    putArray("target_tags", options, params);
    putArray("tags", options, params);
    putArray("public_ids", options, params);
    putArray("prefixes", options, params);
    putEager("transformations", options, params);
    putObject("timestamp", options, params, Util.timestamp());
    putBoolean("skip_transformation_name", options, params);
    putBoolean("allow_missing", options, params);
    putObject("expires_at", options, params);
  }
  return params;
}
com.cloudinaryUtiltimestamp

Popular methods of Util

  • clearEmpty
  • buildCustomHeaders
  • buildEager
  • buildUploadParams
  • encodeContext
  • processWriteParameters
  • buildArchiveParams
  • encodeAccessControl
  • putArray
  • putBoolean
  • putEager
  • putObject
  • putEager,
  • putObject

Popular in Java

  • Making http post requests using okhttp
  • addToBackStack (FragmentTransaction)
  • onRequestPermissionsResult (Fragment)
  • requestLocationUpdates (LocationManager)
  • Table (com.google.common.collect)
    A collection that associates an ordered pair of keys, called a row key and a column key, with a sing
  • GridLayout (java.awt)
    The GridLayout class is a layout manager that lays out a container's components in a rectangular gri
  • File (java.io)
    An "abstract" representation of a file system entity identified by a pathname. The pathname may be a
  • HashMap (java.util)
    HashMap is an implementation of Map. All optional operations are supported.All elements are permitte
  • Scanner (java.util)
    A parser that parses a text string of primitive types and strings with the help of regular expressio
  • Annotation (javassist.bytecode.annotation)
    The annotation structure.An instance of this class is returned bygetAnnotations() in AnnotationsAttr
  • Top plugins for WebStorm
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyStudentsTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now