<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div>Hi Douglas</div><br><blockquote type="cite"><div>And secondly, what would be good values for $accesskey and $secret as<br>used on that page?</div></blockquote><div><br></div><div>Answering this question first..</div><div>1. Register for a free archive.org account here:</div><div><span class="Apple-tab-span" style="white-space:pre"> <a href="http://www.archive.org/account/login.createaccount.php">http://www.archive.org/account/login.createaccount.php</a></span></div><div>2. If you already have an account, login here:</div><div><span class="Apple-tab-span" style="white-space:pre"> <a href="http://www.archive.org/account/login.php">http://www.archive.org/account/login.php</a></span></div><div>3. Copy the $accesskey and $secret from this page:</div><div><span class="Apple-tab-span" style="white-space:pre"> </span><a href="http://www.archive.org/account/s3.php">http://www.archive.org/account/s3.php</a></div><div><br></div><div>As for test items to splay with, you can create one like this:</div><div><br></div><div><span class="Apple-style-span" style="font-family: Times; "><pre style="word-wrap: break-word; white-space: pre-wrap; "> 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 \
<a href="http://s3.us.archive.org/douglas-test-item/test.epub">http://s3.us.archive.org/douglas-test-item/test.epub</a>
</pre><div><font class="Apple-style-span" face="monospace"><span class="Apple-style-span" style="white-space: pre-wrap;"><br></span></font></div></span></div>After that, you can upload a second file to the test item:<div><br></div><div><span class="Apple-style-span" style="font-family: Times; "><pre style="word-wrap: break-word; white-space: pre-wrap; "> curl --location \
--header "authorization: LOW $accesskey:$secret" \
--upload-file /path/to/test2.epub \
<a href="http://s3.us.archive.org/">http://s3.us.archive.org/</a>douglas-test-item/test2.epub</pre></span></div><div><br></div><div>Hope that helps!<div>-raj</div><div><br><div><div>On Oct 12, 2009, at 7:26 PM, Douglas Bagnall wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div>hello<br><br>I'm looking at adding an S3 interface to objavi to transfer the edited<br>epubs directly to archive.org. It seems quite straightforward, from my<br>reading of <a href="http://www.archive.org/help/abouts3.txt">http://www.archive.org/help/abouts3.txt</a>, but I could do with<br>some help in a couple of areas.<br><br>Firstly, is there a test area where I can try things without mucking up<br>the archive database?<br><br><br><br><br>Douglas<br>_______________________________________________<br>Booki-dev mailing list<br><a href="mailto:Booki-dev@lists.flossmanuals.net">Booki-dev@lists.flossmanuals.net</a><br>http://lists.flossmanuals.net/listinfo.cgi/booki-dev-flossmanuals.net<br></div></blockquote></div><br></div></div></body></html>