|« PreviousNext »|
|Did this page help you? Yes | No | Tell us about it...|
The following tasks guide you through using the PHP classes to send authenticated requests using your AWS account or IAM user credentials.
Making Requests Using Your AWS Account or IAM user Credentials
Create an instance of the
Execute one of the
The following PHP code sample demonstrates the preceding tasks and illustrate how the
AmazonS3 client sends a request to list all object keys in a
// Instantiate the class. $s3 = new AmazonS3(); // Use the high-level API. $response = $s3->get_object_list($bucket);
You can create the
AmazonS3 client without providing your security
credentials. Requests sent using this client are anonymous requests, without a
signature. Amazon S3 returns an error if you send anonymous requests for a
resource that is not publicly available.
For example, to list all the object keys in your bucket, see Listing Keys Using the AWS SDK for PHP.