Created
March 16, 2012 08:43
-
-
Save zaherg/2049184 to your computer and use it in GitHub Desktop.
install amazon-sdk sparks
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); | |
class Example extends CI_Controller{ | |
public function __construct(){ | |
parent::__construct(); | |
} | |
public function index(){ | |
$this->load->spark('amazon-sdk/0.1.1'); | |
$s3 = $this->awslib->get_s3(); | |
$result = $s3->list_buckets(); | |
echo '<pre>' . print_r($result, TRUE) . '</pre>'; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment