<div dir="ltr">I'm completely punting on this problem, but can you take some code examples provided in other languages and retrofit them for Erlang? If I'm hitting a wall, I'll get something working in, say, Python - and then work toward forming an identical request in Erlang.<div><br></div><div>Sorry for the lack of specificity here - but this is the approach I'd take in your case.</div><div><br></div><div>OMG, I just realized that I top posted here!</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Apr 8, 2015 at 4:50 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 again,<br>
<br>
OK, I've found erlcloud. Looks like it has what I need. But user documentation is far to skimpy for my feeble brain:<br>
<br>
<a href="https://github.com/gleber/erlcloud" target="_blank">https://github.com/gleber/erlcloud</a><br>
<br>
Can some kind soul help me translate this example...<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>
...into the appropriate erlcloud request function?<br>
<br>
Thanks,<br>
<br>
LRP<br>
<br>
-----Original Message-----<br>
From: <a href="mailto:lloyd@writersglen.com">lloyd@writersglen.com</a><br>
Sent: Wednesday, April 8, 2015 4:47pm<br>
To: "Erlang Questions" <<a href="mailto:erlang-questions@erlang.org">erlang-questions@erlang.org</a>><br>
Subject: [erlang-questions] Amazon API -- Lookup by ISBN<br>
<br>
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>
<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>