<div dir="ltr">I played around with implementing this:<br><br><a href="https://gist.github.com/bjhaid/5d3c58aca0dbee0d96fd">https://gist.github.com/bjhaid/5d3c58aca0dbee0d96fd</a><br><br>PS: It's not tested outside of erl, and was a lunch time hacking.<div><br></div><div>BR,</div><div><br></div><div>Ayo<br><div class="gmail_extra"><div><div class="gmail_signature"><div dir="ltr"><br></div></div></div>
<br><div class="gmail_quote">On Thu, Apr 9, 2015 at 12:44 PM, Bob Ippolito <span dir="ltr"><<a href="mailto:bob@redivi.com" target="_blank">bob@redivi.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">I'm sure they're just trying to keep tabs on who uses the API so that they can implement rate limiting and such to prevent third parties from scraping the entire database or adversely affecting performance for everyone else. This actually looks like one of the simpler APIs to implement, since it's just in the query string, and the signature is using standard algorithms. I'm sure you could get it if you put some effort into just building it rather than trying to find an implementation that someone else has already built.</div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Apr 9, 2015 at 9:55 AM,  <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">Thanks all.<br>
<br>
Darach--- looks like the Library of Congress API fits the bill.<br>
<br>
Garrett--- for sake of self-enlightenment I'll take a look at Python implementations.<br>
<br>
I can understand that Amazon needs to enforce security on their api, but one would think that the inventor of one-click ordering could come up with a simpler api request implementation. Maybe they're just trying to keep pesky users like me out of the goodies. Wizards only apply.<br>
<br>
Best wishes,<br>
<br>
Lloyd<br>
<div><div><br>
<br>
<br>
-----Original Message-----<br>
From: "Darach Ennis" <<a href="mailto:darach@gmail.com" target="_blank">darach@gmail.com</a>><br>
Sent: Wednesday, April 8, 2015 8:07pm<br>
To: "Lloyd Prentice" <<a href="mailto:lloyd@writersglen.com" target="_blank">lloyd@writersglen.com</a>><br>
Cc: "Erlang Questions" <<a href="mailto:erlang-questions@erlang.org" target="_blank">erlang-questions@erlang.org</a>><br>
Subject: Re: [erlang-questions] Amazon API -- Lookup by ISBN<br>
<br>
If you don't need the rank information you can get the metadata through<br>
composing a URL<br>
against the library of congress database:<br>
<br>
<a href="http://lx2.loc.gov:210/lcdb?version=1.1&operation=searchRetrieve&query=bath.isbn=0448421658&maximumRecords=1&recordSchema=mods" target="_blank">http://lx2.loc.gov:210/lcdb?version=1.1&operation=searchRetrieve&query=bath.isbn=0448421658&maximumRecords=1&recordSchema=mods</a><br>
<br>
This will deliver an XML document. You can get similar information from<br>
Google's API:<br>
<br>
<a href="http://www.google.com/books/feeds/volumes/?q=ISBN%3C0448421658%3E" target="_blank">http://www.google.com/books/feeds/volumes/?q=ISBN%3C0448421658%3E</a><br>
<br>
Both are simple HTTP GET requests so unless you absolutely need data unique<br>
to Amazon's DB perhaps that would suffice.<br>
<br>
Cheers,<br>
<br>
Darach.<br>
<br>
On Wed, Apr 8, 2015 at 9:47 PM, <<a href="mailto:lloyd@writersglen.com" target="_blank">lloyd@writersglen.com</a>> wrote:<br>
<br>
> Hello,<br>
><br>
> I'm striving to look up books in Amazon's db by ISBN. At first blush it<br>
> looks easy enough:<br>
><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>
><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<br>
> 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<br>
> they're willing to share?<br>
><br>
> NOTE: Dave Thomas solved this problem way back in 2007. But looks like<br>
> 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" target="_blank">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>
><br>
<br>
<br>
_______________________________________________<br>
erlang-questions mailing list<br>
<a href="mailto:erlang-questions@erlang.org" target="_blank">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>
</div></div></blockquote></div><br></div>
</div></div><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>
<br></blockquote></div><br></div></div></div>