Chilkat HOME Android™ ASP Visual Basic VB.NET C# iOS (IPhone) Objective-C C++ C Unicode C++ Unicode C MFC Delphi DLL Delphi ActiveX FoxPro Java Perl PHP Extension PHP ActiveX Python PowerShell Ruby SQL Server VBScript
|
(Visual FoxPro) S3 List BucketsDemonstrates how to retrieve the XML listing the buckets for an Amazon S3 account. LOCAL loHttp LOCAL lnSuccess LOCAL lcXmlStr loHttp = CreateObject('Chilkat.Http') lnSuccess = loHttp.UnlockComponent("Anything for 30-day trial") IF (lnSuccess <> 1) THEN ? loHttp.LastErrorText QUIT ENDIF * Insert your access key here: loHttp.AwsAccessKey = "ABQXXABC83ABCDEFVQXX" * Insert your secret key here: loHttp.AwsSecretKey = "XXXXYYYYabcdABCD12345678xxxxyyyyzzzz" lcXmlStr = loHttp.S3_ListBuckets() IF (lcXmlStr = NULL ) THEN * Failed ? loHttp.LastErrorText ELSE * Success ? lcXmlStr ENDIF |
© 2000-2013 Chilkat Software, Inc. All Rights Reserved.