@@ -88,15 +88,15 @@ public ApiResponse resources(Map options) throws Exception {
8888 if (type != null )
8989 uri .add (type );
9090
91- ApiResponse response = callApi (HttpMethod .GET , uri , ObjectUtils .only (options , "next_cursor" , "direction" , "max_results" , "prefix" , "tags" , "context" , "moderations" , "start_at" ), options );
91+ ApiResponse response = callApi (HttpMethod .GET , uri , ObjectUtils .only (options , "next_cursor" , "direction" , "max_results" , "prefix" , "tags" , "context" , "moderations" , "start_at" , "metadata" ), options );
9292 return response ;
9393 }
9494
9595 public ApiResponse resourcesByTag (String tag , Map options ) throws Exception {
9696 if (options == null ) options = ObjectUtils .emptyMap ();
9797 String resourceType = ObjectUtils .asString (options .get ("resource_type" ), "image" );
9898
99- ApiResponse response = callApi (HttpMethod .GET , Arrays .asList ("resources" , resourceType , "tags" , tag ), ObjectUtils .only (options , "next_cursor" , "direction" , "max_results" , "tags" , "context" , "moderations" ), options );
99+ ApiResponse response = callApi (HttpMethod .GET , Arrays .asList ("resources" , resourceType , "tags" , tag ), ObjectUtils .only (options , "next_cursor" , "direction" , "max_results" , "tags" , "context" , "moderations" , "metadata" ), options );
100100 return response ;
101101 }
102102
@@ -107,7 +107,7 @@ public ApiResponse resourcesByContext(String key, Map options) throws Exception
107107 public ApiResponse resourcesByContext (String key , String value , Map options ) throws Exception {
108108 if (options == null ) options = ObjectUtils .emptyMap ();
109109 String resourceType = ObjectUtils .asString (options .get ("resource_type" ), "image" );
110- Map params = ObjectUtils .only (options , "next_cursor" , "direction" , "max_results" , "tags" , "context" , "moderations" );
110+ Map params = ObjectUtils .only (options , "next_cursor" , "direction" , "max_results" , "tags" , "context" , "moderations" , "metadata" );
111111 params .put ("key" , key );
112112 if (StringUtils .isNotBlank (value )) {
113113 params .put ("value" , value );
@@ -143,7 +143,7 @@ public ApiResponse resourcesByModeration(String kind, String status, Map options
143143 if (options == null ) options = ObjectUtils .emptyMap ();
144144 String resourceType = ObjectUtils .asString (options .get ("resource_type" ), "image" );
145145
146- ApiResponse response = callApi (HttpMethod .GET , Arrays .asList ("resources" , resourceType , "moderations" , kind , status ), ObjectUtils .only (options , "next_cursor" , "direction" , "max_results" , "tags" , "context" , "moderations" ), options );
146+ ApiResponse response = callApi (HttpMethod .GET , Arrays .asList ("resources" , resourceType , "moderations" , kind , status ), ObjectUtils .only (options , "next_cursor" , "direction" , "max_results" , "tags" , "context" , "moderations" , "metadata" ), options );
147147 return response ;
148148 }
149149
0 commit comments