![]() |
Chilkat HOME Android™ AutoIt C C# C++ Chilkat2-Python CkPython Classic ASP DataFlex Delphi DLL Go Java Node.js Objective-C PHP Extension Perl PowerBuilder PowerShell PureBasic Ruby SQL Server Swift Tcl Unicode C Unicode C++ VB.NET VBScript Visual Basic 6.0 Visual FoxPro Xojo Plugin
(Tcl) Transition from Http.S3_DeleteMultipleObjects to Http.S3_DeleteObjectsProvides instructions for replacing deprecated S3_DeleteMultipleObjects method calls with S3_DeleteObjects. Note: This example requires Chilkat v11.0.0 or greater.
load ./chilkat.dll set http [new_CkHttp] set bucketName "testBucket" set sa [new_CkStringArray] CkStringArray_Append $sa "starfish.jpg" CkStringArray_Append $sa "clam.jpg" CkStringArray_Append $sa "shark.jpg" set st [new_CkStringTable] CkStringTable_Append $st "starfish.jpg" CkStringTable_Append $st "clam.jpg" CkStringTable_Append $st "shark.jpg" # ------------------------------------------------------------------------ # The S3_DeleteMultipleObjects method is deprecated: # responseObj is a CkHttpResponse set responseObj [CkHttp_S3_DeleteMultipleObjects $http $bucketName $sa] if {[CkHttp_get_LastMethodSuccess $http] == 0} then { puts [CkHttp_lastErrorText $http] delete_CkHttp $http delete_CkStringArray $sa delete_CkStringTable $st exit } # ... # ... delete_CkHttpResponse $responseObj # ------------------------------------------------------------------------ # Do the equivalent using S3_DeleteObjects. # Your application creates a new, empty HttpResponse object which is passed # in the last argument and filled upon success. set responseOut [new_CkHttpResponse] set success [CkHttp_S3_DeleteObjects $http $bucketName $st $responseOut] if {$success == 0} then { puts [CkHttp_lastErrorText $http] delete_CkHttp $http delete_CkStringArray $sa delete_CkStringTable $st delete_CkHttpResponse $responseOut exit } delete_CkHttp $http delete_CkStringArray $sa delete_CkStringTable $st delete_CkHttpResponse $responseOut |
© 2000-2025 Chilkat Software, Inc. All Rights Reserved.