Skip to content
Permalink
Browse files

update AWS SDK Ver.3

  • Loading branch information
naa0yama committed Dec 18, 2016
1 parent 5057cc7 commit b47724c958d67901cbedfaa64708981434c6b9c4
Showing with 8 additions and 5 deletions.
  1. BIN includes/aws.phar
  2. +8 −5 includes/class-S3_helper.php
BIN -788 KB (89%) includes/aws.phar
Binary file not shown.
@@ -25,11 +25,14 @@ function __construct($access_key = null, $secret_key = null, $region = null) {
public function init_s3($access_key, $secret_key, $region = null){
if ( !isset($region) )
$region = Region::AP_NORTHEAST_1;
$s3 = Aws::factory(array(
'key' => $access_key,
'secret' => $secret_key,
'region' => $this->get_region($region),
))->get('s3');
$credentials = new \Aws\Credentials\Credentials($access_key, $secret_key);
$params = array(
'credentials' => $credentials,
'region' => $this->get_region($region),
'version' => '2006-03-01',
);

$s3 = new \Aws\Sqs\SqsClient($params);
$this->s3 = $s3;
return $s3;
}

0 comments on commit b47724c

Please sign in to comment.
You can’t perform that action at this time.