Sample code for 30+ languages & platforms
Tcl

Wasabi Download File

See more Wasabi Examples

Demonstrates how to download a file from a Wasabi bucket.

Chilkat Tcl Downloads

Tcl

load ./chilkat.dll

set success 0

# This 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 "access-key"

# Insert your secret key here:
CkHttp_put_AwsSecretKey $http "secret-key"

# Use the endpoint matching the bucket's region.
CkHttp_put_AwsEndpoint $http "s3.us-west-1.wasabisys.com"

set bucketName "chilkat-west"
set objectName "seahorse.jpg"
set localFilePath "c:/temp/qa_output/seahorse.jpg"

set success [CkHttp_S3_DownloadFile $http $bucketName $objectName $localFilePath]
if {$success != 1} then {
    puts [CkHttp_lastErrorText $http]
} else {
    puts "File downloaded."
}


delete_CkHttp $http