<div dir="ltr">If you don't need the rank information you can get the metadata through composing a URL<div>against the library of congress database:</div><div><br></div><div><a href="http://lx2.loc.gov:210/lcdb?version=1.1&operation=searchRetrieve&query=bath.isbn=0448421658&maximumRecords=1&recordSchema=mods">http://lx2.loc.gov:210/lcdb?version=1.1&operation=searchRetrieve&query=bath.isbn=0448421658&maximumRecords=1&recordSchema=mods</a><br></div><div><br></div><div>This will deliver an XML document. You can get similar information from Google's API:</div><div><br></div><div><a href="http://www.google.com/books/feeds/volumes/?q=ISBN%3C0448421658%3E">http://www.google.com/books/feeds/volumes/?q=ISBN%3C0448421658%3E</a><br></div><div><br></div><div>Both are simple HTTP GET requests so unless you absolutely need data unique to Amazon's DB perhaps that would suffice.</div><div><br></div><div>Cheers,</div><div><br></div><div>Darach.</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Apr 8, 2015 at 9:47 PM, <span dir="ltr"><<a href="mailto:lloyd@writersglen.com" target="_blank">lloyd@writersglen.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hello,<br>
<br>
I'm striving to look up books in Amazon's db by ISBN. At first blush it looks easy enough:<br>
<br>
<a href="http://docs.aws.amazon.com/AWSECommerceService/latest/DG/EX_LookupbyISBN.html" target="_blank">http://docs.aws.amazon.com/AWSECommerceService/latest/DG/EX_LookupbyISBN.html</a><br>
<br>
But the last item, Signature, baffles me. Procedure here:<br>
<br>
<a href="http://docs.aws.amazon.com/AWSECommerceService/latest/DG/rest-signature.html" target="_blank">http://docs.aws.amazon.com/AWSECommerceService/latest/DG/rest-signature.html</a><br>
<br>
I'm fine with this until I hit step 4:<br>
<br>
-- Sort parameter/value pairs by byte value --- I can see how to do this manually, but don't know how put Erlang to the task<br>
<br>
And I'm really stumped when I hit step 8:<br>
<br>
-- Calculate an RFC 2104-compliant HMAC with the SHA256 hash algorithm<br>
<br>
Any help? Better yet, does anyone have actual code to make such requests they're willing to share?<br>
<br>
NOTE: Dave Thomas solved this problem way back in 2007. But looks like Amazon has changed their request format:<br>
<br>
<a href="http://pragdave.me/blog/2007/04/15/a-first-erlang-program/" target="_blank">http://pragdave.me/blog/2007/04/15/a-first-erlang-program/</a><br>
<br>
Many thanks,<br>
<br>
LRP<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
_______________________________________________<br>
erlang-questions mailing list<br>
<a href="mailto:erlang-questions@erlang.org">erlang-questions@erlang.org</a><br>
<a href="http://erlang.org/mailman/listinfo/erlang-questions" target="_blank">http://erlang.org/mailman/listinfo/erlang-questions</a><br>
</blockquote></div><br></div>