Amazon::S3::Thin - A thin, ligthweight, low-level Amazon S3 client
use Amazon::S3::Thin; my $s3client = Amazon::S3::Thin->new( { aws_access_key_id => $aws_access_key_id, aws_secret_access_key => $aws_secret_access_key, } ); my $key = "dir/file.txt"; my $response; $response = $s3client->put_object($bucket, $key, "hello world"); $response = $s3client->get_object($bucket, $key); print $response->content; # => "hello world" $response = $s3client->delete_object($bucket, $key); $response = $s3client->copy_object($src_bucket, $src_key, $dst_bucket, $dst_key); $response = $s3client->list_objects( $bucket, {prefix => "foo", delimter => "/"} );
Amazon::S3::Thin - A thin, ligthweight, low-level Amazon S3 client.
It returns HTTP::Response. So you can inspect easily what's happening inside , and can handle error as you like.
It does not depend on any XML::* modules, so that you can install it easily.
The interfaces are designed to follow S3 official REST APIs. So it is easy to learn.
lots of APIs are not implemented yet.
Copyright (C) DQNEO.
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
DQNEO
Amazon::S3, Net::Amazon::S3
To install Amazon::S3::Thin, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Amazon::S3::Thin
CPAN shell
perl -MCPAN -e shell install Amazon::S3::Thin
For more information on module installation, please visit the detailed CPAN module installation guide.