lib/crowdin-api/api_resources/bundles.rb in crowdin-api-1.8.1 vs lib/crowdin-api/api_resources/bundles.rb in crowdin-api-1.9.0

- old
+ new

@@ -68,22 +68,23 @@ Web::SendRequest.new(request).perform end # @param bundle_id [Integer] Bundle ID # @param export_id [String] Export ID + # @param destination [String] Destination of File # * {https://developer.crowdin.com/api/v2/#operation/api.projects.bundles.exports.download.get API Documentation} # * {https://developer.crowdin.com/enterprise/api/v2/#operation/api.projects.bundles.exports.download.get Enterprise API Documentation} - def download_bundle(bundle_id, export_id, project_id = config.project_id) + def download_bundle(bundle_id, export_id, destination = nil, project_id = config.project_id) bundle_id || raise_parameter_is_required_error(:bundle_id) export_id || raise_parameter_is_required_error(:export_id) project_id || raise_project_id_is_required_error request = Web::Request.new( connection, :get, "#{config.target_api_url}/projects/#{project_id}/bundles/#{bundle_id}/exports/#{export_id}/download" ) - Web::SendRequest.new(request).perform + Web::SendRequest.new(request, destination).perform end # @param bundle_id [Integer] Bundle ID # * {https://developer.crowdin.com/api/v2/#operation/api.projects.bundles.get API Documentation} # * {https://developer.crowdin.com/enterprise/api/v2/#operation/api.projects.bundles.get Enterprise API Documentation}