SOAP::Amazon::S3

SOAP::Amazon::S3 is a Perl module for interfacing with Amazon S3 through SOAP.
Download

SOAP::Amazon::S3 Ranking & Summary

Advertisement

  • Rating:
  • License:
  • Perl Artistic License
  • Price:
  • FREE
  • Publisher Name:
  • Alexander Karelas
  • Publisher web site:
  • http://search.cpan.org/~karjala/SOAP-Amazon-S3-0.023/lib/SOAP/Amazon/S3.pm

SOAP::Amazon::S3 Tags


SOAP::Amazon::S3 Description

SOAP::Amazon::S3 is a Perl module for interfacing with Amazon S3 through SOAP. SOAP::Amazon::S3 is a Perl module for interfacing with Amazon S3 through SOAP.SYNOPSISAn object-oriented interface to handle your Amazon S3 storage. (Still experimental, although functional) use SOAP::Amazon::S3; my $s3 = SOAP::Amazon::S3->new( $access_key_id, $secret_access_key, { Debug => 1, RaiseError => 1 } ); my @buckets = $s3->listbuckets; my $bucket = $s3->createbucket('mybucketname'); my $bucket = $s3->bucket('myoldbucket'); # won't create a new bucket print $bucket->name; $bucket->delete; my @objects = $bucket->list; my $object = $bucket->putobject( $obj_key, $obj_data, { 'Content-Type' => 'text/plain' } ); my $object = $bucket->object( $old_obj_key ); # won't put a new object in the bucket print $object->name; $object->delete; $object->acl('public'); $object->acl('private'); print $object->acl(); # will print 'public' or 'private' $data = $object->getdata;FUNCTIONSSOAP::Amazon::S3->new( $access_key_id, $secret_key_id, { Debug => 0_or_1, RaiseError => 0_or_1 } );Creates a new S3 requester object. The {} parameters are optional and default to 0. Debug will output all SOAP communications on screen. RaiseError will make your program die if it receives an error reply from Amazon S3, and output the error message on screen. If RaiseError is off, then $s3->{'error'} will still be set to true when an S3 error occurs. Requirements: · Perl


SOAP::Amazon::S3 Related Software