Skip to content

Commit 61c905f

Browse files
itaibenariAmir Tocker
authored andcommitted
add missing support for next cursor and future proof type
1 parent c60af98 commit 61c905f

File tree

1 file changed

+2
-2
lines changed
  • cloudinary-core/src/main/java/com/cloudinary

1 file changed

+2
-2
lines changed

cloudinary-core/src/main/java/com/cloudinary/Api.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -514,12 +514,12 @@ private ApiResponse updateResourcesAccessMode(String accessMode, String byKey, O
514514
List<String> uri = new ArrayList<String>();
515515
uri.add("resources");
516516
uri.add(resourceType);
517-
uri.add("upload");
517+
uri.add(ObjectUtils.asString(options.get("type"), "upload"));
518518
uri.add("update_access_mode");
519519
Map params = new HashMap<String, Object>();
520520
params.put("access_mode", accessMode);
521521
params.put(byKey, value);
522-
return callApi(HttpMethod.POST, uri, params, options);
522+
return callApi(HttpMethod.POST, uri, params, ObjectUtils.only(options, "next_cursor"));
523523
}
524524

525525
}

0 commit comments

Comments
 (0)