Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions cloudinary-core/src/main/java/com/cloudinary/Api.java
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ public ApiResponse resourcesByTag(String tag, Map options) throws Exception {
if(options.get("fields") != null) {
options.put("fields", StringUtils.join(ObjectUtils.asArray(options.get("fields")), ","));
}
ApiResponse response = callApi(HttpMethod.GET, Arrays.asList("resources", resourceType, "tags", tag), ObjectUtils.only(options, "next_cursor", "direction", "max_results", "tags", "context", "moderations", "metadata", "fields"), options);
ApiResponse response = callApi(HttpMethod.GET, Arrays.asList("resources", resourceType, "tags", tag), ObjectUtils.only(options, "next_cursor", "direction", "max_results", "tags", "context", "moderations", "metadata", "fields", "direction"), options);
return response;
}

Expand All @@ -149,13 +149,13 @@ public ApiResponse resourceByAssetID(String assetId, Map options) throws Excepti
if(options.get("fields") != null) {
options.put("fields", StringUtils.join(ObjectUtils.asArray(options.get("fields")), ","));
}
Map params = ObjectUtils.only(options, "tags", "context", "moderations", "fields");
Map params = ObjectUtils.only(options, "colors", "faces", "quality_analysis", "accessibility_analysis","phash", "coordinates", "versions", "max_results", "derived_next_cursor" );
ApiResponse response = callApi(HttpMethod.GET, Arrays.asList("resources", assetId), params, options);
return response;
}
public ApiResponse resourcesByAssetIDs(Iterable<String> assetIds, Map options) throws Exception {
if (options == null) options = ObjectUtils.emptyMap();
Map params = ObjectUtils.only(options, "public_ids", "tags", "context", "moderations");
Map params = ObjectUtils.only(options, "public_ids", "tags", "context", "moderations", "max_results", "next_cursor", "direction", "fields", "metadata");
params.put("asset_ids", assetIds);
ApiResponse response = callApi(HttpMethod.GET, Arrays.asList("resources", "by_asset_ids"), params, options);
return response;
Expand All @@ -166,7 +166,7 @@ public ApiResponse resourcesByAssetFolder(String assetFolder, Map options) throw
if(options.get("fields") != null) {
options.put("fields", StringUtils.join(ObjectUtils.asArray(options.get("fields")), ","));
}
Map params = ObjectUtils.only(options, "next_cursor", "direction", "max_results", "tags", "context", "moderations", "fields");
Map params = ObjectUtils.only(options, "next_cursor", "direction", "max_results", "tags", "context", "moderations", "fields", "metadata");
params.put("asset_folder", assetFolder);
ApiResponse response = callApi(HttpMethod.GET, Arrays.asList("resources/by_asset_folder"), params, options);
return response;
Expand Down Expand Up @@ -200,7 +200,7 @@ public ApiResponse resource(String public_id, Map options) throws Exception {
ApiResponse response = callApi(HttpMethod.GET, Arrays.asList("resources", resourceType, type, public_id),
ObjectUtils.only(options, "exif", "colors", "faces", "coordinates",
"image_metadata", "pages", "phash", "max_results", "quality_analysis", "cinemagraph_analysis",
"accessibility_analysis", "versions", "media_metadata", "derived_next_cursor"), options);
"accessibility_analysis", "versions", "media_metadata", "related", "related_next_cursor", "derived_next_cursor"), options);

return response;
}
Expand Down