lib/nylas/resources/folders.rb in nylas-6.2.0 vs lib/nylas/resources/folders.rb in nylas-6.2.1

- old
+ new

@@ -25,13 +25,15 @@ # Return a folder. # # @param identifier [String] Grant ID or email account to query. # @param folder_id [String] The id of the folder to return. + # @param query_params [Hash, nil] Query params to pass to the request. # @return [Array(Hash, String)] The folder and API request ID. - def find(identifier:, folder_id:) + def find(identifier:, folder_id:, query_params: nil) get( - path: "#{api_uri}/v3/grants/#{identifier}/folders/#{folder_id}" + path: "#{api_uri}/v3/grants/#{identifier}/folders/#{folder_id}", + query_params: query_params ) end # Create a folder. #