Unicode C
Unicode C
S3 Create Bucket
See more Amazon S3 Examples
Demonstrates how to create a new bucket.Chilkat Unicode C Downloads
#include <C_CkHttpW.h>
void ChilkatSample(void)
{
BOOL success;
HCkHttpW http;
success = FALSE;
// This example assumes the Chilkat API to have been previously unlocked.
// See Global Unlock Sample for sample code.
http = CkHttpW_Create();
// Insert your access key here:
CkHttpW_putAwsAccessKey(http,L"ABQXXABC83ABCDEFVQXX");
// Insert your secret key here:
CkHttpW_putAwsSecretKey(http,L"XXXXYYYYabcdABCD12345678xxxxyyyyzzzz");
success = CkHttpW_S3_CreateBucket(http,L"chilkattestbucket");
if (success != TRUE) {
wprintf(L"%s\n",CkHttpW_lastErrorText(http));
}
else {
wprintf(L"Bucket created.\n");
}
CkHttpW_Dispose(http);
}