本文整理了Java中com.cloudinary.Util.processWriteParameters()
方法的一些代码示例,展示了Util.processWriteParameters()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Util.processWriteParameters()
方法的具体详情如下:
包路径:com.cloudinary.Util
类名称:Util
方法名:processWriteParameters
暂无
代码示例来源:origin: com.cloudinary/cloudinary-core
public ApiResponse update(String public_id, Map options) throws Exception {
if (options == null) options = ObjectUtils.emptyMap();
String resourceType = ObjectUtils.asString(options.get("resource_type"), "image");
String type = ObjectUtils.asString(options.get("type"), "upload");
Map params = new HashMap<String, Object>();
Util.processWriteParameters(options, params);
params.put("moderation_status", options.get("moderation_status"));
params.put("notification_url", options.get("notification_url"));
ApiResponse response = callApi(HttpMethod.POST, Arrays.asList("resources", resourceType, type, public_id),
params, options);
return response;
}
代码示例来源:origin: cloudinary/cloudinary_java
public ApiResponse update(String public_id, Map options) throws Exception {
if (options == null) options = ObjectUtils.emptyMap();
String resourceType = ObjectUtils.asString(options.get("resource_type"), "image");
String type = ObjectUtils.asString(options.get("type"), "upload");
Map params = new HashMap<String, Object>();
Util.processWriteParameters(options, params);
params.put("moderation_status", options.get("moderation_status"));
params.put("notification_url", options.get("notification_url"));
ApiResponse response = callApi(HttpMethod.POST, Arrays.asList("resources", resourceType, type, public_id),
params, options);
return response;
}
代码示例来源:origin: com.cloudinary/cloudinary
public ApiResponse update(String public_id, Map options) throws Exception {
if (options == null) options = Cloudinary.emptyMap();
String resourceType = Cloudinary.asString(options.get("resource_type"), "image");
String type = Cloudinary.asString(options.get("type"), "upload");
Map params = new HashMap<String, Object>();
Util.processWriteParameters(options, params);
params.put("moderation_status", options.get("moderation_status"));
return callApi(HttpMethod.POST, Arrays.asList("resources", resourceType, type, public_id),
params, options);
}
代码示例来源:origin: com.cloudinary/cloudinary
params.put("upload_preset", options.get("upload_preset"));
processWriteParameters(options, params);
return params;
代码示例来源:origin: cloudinary/cloudinary_java
processWriteParameters(options, params);
} else {
代码示例来源:origin: com.cloudinary/cloudinary-core
processWriteParameters(options, params);
} else {
内容来源于网络,如有侵权,请联系作者删除!