[Booki-dev] S3

Douglas Bagnall douglas at paradise.net.nz
Mon Oct 12 20:01:28 PDT 2009


thanks Raj,

I see now that most of that information was in front of me, but I was
just skimming TFM.

Douglas

raj kumar wrote:

> Hi Douglas
> 
>> And secondly, what would be good values for $accesskey and $secret as
>> used on that page?
> 
> Answering this question first..
> 1. Register for a free archive.org account here:
>     http://www.archive.org/account/login.createaccount.php
> 2. If you already have an account, login here:
>     http://www.archive.org/account/login.php
> 3. Copy the $accesskey and $secret from this page:
>     http://www.archive.org/account/s3.php
> 
> As for test items to splay with, you can create one like this:
> 
>     curl --location --header 'x-amz-auto-make-bucket:1' \
>          --header 'x-archive-meta01-collection:opensource' \
>          --header 'x-archive-meta-mediatype:texts' \
>          --header "authorization: LOW $accesskey:$secret" \
>          --upload-file /path/to/test.epub \
>          http://s3.us.archive.org/douglas-test-item/test.epub
> 
> After that, you can upload a second file to the test item:
> 
>     curl --location \
>          --header "authorization: LOW $accesskey:$secret" \
>          --upload-file /path/to/test2.epub \
>          http://s3.us.archive.org/douglas-test-item/test2.epub
> 
> Hope that helps!
> -raj
> 
> On Oct 12, 2009, at 7:26 PM, Douglas Bagnall wrote:
> 
>> hello
>>
>> I'm looking at adding an S3 interface to objavi to transfer the edited
>> epubs directly to archive.org.  It seems quite straightforward, from my
>> reading of http://www.archive.org/help/abouts3.txt, but I could do with
>> some help in a couple of areas.
>>
>> Firstly, is there a test area where I can try things without mucking up
>> the archive database?
>>
>>
>>
>>
>> Douglas
>> _______________________________________________
>> Booki-dev mailing list
>> Booki-dev at lists.flossmanuals.net
>> http://lists.flossmanuals.net/listinfo.cgi/booki-dev-flossmanuals.net
> 
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> Booki-dev mailing list
> Booki-dev at lists.flossmanuals.net
> http://lists.flossmanuals.net/listinfo.cgi/booki-dev-flossmanuals.net





More information about the Booki-dev mailing list