Chilkat HOME .NET Core C# Android™ AutoIt C C# C++ Chilkat2-Python CkPython Classic ASP DataFlex Delphi ActiveX Delphi DLL Go Java Lianja Mono C# Node.js Objective-C PHP ActiveX PHP Extension Perl PowerBuilder PowerShell PureBasic Ruby SQL Server Swift 2 Swift 3,4,5... Tcl Unicode C Unicode C++ VB.NET VBScript Visual Basic 6.0 Visual FoxPro Xojo Plugin
(Tcl) S3 Delete Multiple ObjectsDemonstrates how to delete multiple objects in a single HTTP request.
load ./chilkat.dll # This example requires the Chilkat API to have been previously unlocked. # See Global Unlock Sample for sample code. set http [new_CkHttp] # Insert your access key here: CkHttp_put_AwsAccessKey $http "ABQXXABC83ABCDEFVQXX" # Insert your secret key here: CkHttp_put_AwsSecretKey $http "XXXXYYYYabcdABCD12345678xxxxyyyyzzzz" set bucketName "chilkattestbucket" set objectName1 "starfish.jpg" # Delete a particular version of this object: set objectName2 "conch.jpg; VersionId=\"3/L4kqtJlcpXroDTDmJ+rmSpXd3dIbrHY+MTRCxf3vjVBH40Nr8X8gdRQBpUMLUo\"" set objectName3 "seaUrchin.jpg" set sa [new_CkStringArray] CkStringArray_Append $sa $objectName1 CkStringArray_Append $sa $objectName2 CkStringArray_Append $sa $objectName3 # resp is a CkHttpResponse set resp [CkHttp_S3_DeleteMultipleObjects $http $bucketName $sa] if {[CkHttp_get_LastMethodSuccess $http] == 0} then { puts [CkHttp_lastErrorText $http] delete_CkHttp $http delete_CkStringArray $sa exit } # Display the JSON response. puts [CkHttpResponse_bodyStr $resp] delete_CkHttpResponse $resp delete_CkHttp $http delete_CkStringArray $sa |
© 2000-2024 Chilkat Software, Inc. All Rights Reserved.