Lianja
Lianja
S3 Create Bucket
See more Amazon S3 Examples
Demonstrates how to create a new bucket.Chilkat Lianja Downloads
llSuccess = .F.
// This example assumes the Chilkat API to have been previously unlocked.
// See Global Unlock Sample for sample code.
loHttp = createobject("CkHttp")
// Insert your access key here:
loHttp.AwsAccessKey = "ABQXXABC83ABCDEFVQXX"
// Insert your secret key here:
loHttp.AwsSecretKey = "XXXXYYYYabcdABCD12345678xxxxyyyyzzzz"
llSuccess = loHttp.S3_CreateBucket("chilkattestbucket")
if (llSuccess <> .T.) then
? loHttp.LastErrorText
else
? "Bucket created."
endif
release loHttp