Ruby: http://qiita.com/toshitanian/items/eab866b46bdec7283d4b
An object storage service that supports large amounts of data and has an S3 compatible API.
http://cloud.sakura.ad.jp/specification.php#section-object
boto / boto de facto
boto / boto3 New version of boto. It seems better to use this one.
python: Python 2.7.8
boto(2.32.1)
from boto.s3.connection import S3Connection
conn = S3Connection(
'xxx', # access_key_id
'yyyy', # secret_access_key
host='b.sakurastorage.jp'
)
bucket = conn.get_bucket('test-bucket')
obj = bucket.get_key('sample_file.txt')
print obj.get_contents_as_string()
Recommended Posts