Sample code for 30+ languages & platforms
Lianja

S3 Create Bucket

See more S3 - HTTP Examples

Demonstrates how to create a new bucket.

Chilkat Lianja Downloads

Lianja
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