{"id":2072,"date":"2011-11-01T19:59:32","date_gmt":"2011-11-02T01:59:32","guid":{"rendered":"http:\/\/bililite.nfshost.com\/blog\/?p=2072"},"modified":"2011-11-01T19:59:32","modified_gmt":"2011-11-02T01:59:32","slug":"the-new-amazon-advertising-api","status":"publish","type":"post","link":"https:\/\/bililite.com\/blog\/2011\/11\/01\/the-new-amazon-advertising-api\/","title":{"rendered":"The New Amazon Advertising API"},"content":{"rendered":"<p>I use Ulrich Mierendorff's <a href=\"http:\/\/mierendo.com\/software\/aws_signed_query\/\">aws_signed_request<\/a> to create my <a href=\"\/blog\/2010\/10\/31\/hacking-my-way-to-an-amazon-wishlist-widget\/\" title=\"Hacking My Way to an Amazon Wishlist Widget\">Amazon Wishlist Widget<\/a>. But Amazon just <a href=\"https:\/\/affiliate-program.amazon.com\/gp\/advertising\/api\/detail\/api-changes.html\">changed the terms of their API<\/a> (which they do with <a href=\"http:\/\/aws.amazon.com\/releasenotes\/4038\">frightening regularity<\/a>). Luckily, it's a small change: each request now requires an Associate Tag in addition to the AWS key and encryption with the AWS secret key. But if you want to make money off Amazon, you need an Associate Tag anyway. So in the <code>$params<\/code> that are passed to <code>aws_signed_request<\/code> be sure to include a parameter <code>\"AssociateTag\" =&gt; $tag<\/code>. And now it works again. For now.<\/p>\n<p>I guess the idea is to up the ante in <a href=\"http:\/\/www.thestreet.com\/story\/11052898\/1\/amazon-sales-tax-the-battle-state-by-state.html\">Amazon's battle against state sales taxes<\/a>&mdash;they've cut off the associates in states they're in conflict with, and now those users can't use the search API at all.<\/p>\n<p>I hope they don't declare war on Missouri next.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I use Ulrich Mierendorff's aws_signed_request to create my Amazon Wishlist Widget. But Amazon just changed the terms of their API (which they do with frightening regularity). Luckily, it's a small change: each request now requires an Associate Tag in addition to the AWS key and encryption with the AWS secret key. But if you want [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[9],"tags":[],"_links":{"self":[{"href":"https:\/\/bililite.com\/blog\/wp-json\/wp\/v2\/posts\/2072"}],"collection":[{"href":"https:\/\/bililite.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/bililite.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/bililite.com\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/bililite.com\/blog\/wp-json\/wp\/v2\/comments?post=2072"}],"version-history":[{"count":2,"href":"https:\/\/bililite.com\/blog\/wp-json\/wp\/v2\/posts\/2072\/revisions"}],"predecessor-version":[{"id":2074,"href":"https:\/\/bililite.com\/blog\/wp-json\/wp\/v2\/posts\/2072\/revisions\/2074"}],"wp:attachment":[{"href":"https:\/\/bililite.com\/blog\/wp-json\/wp\/v2\/media?parent=2072"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/bililite.com\/blog\/wp-json\/wp\/v2\/categories?post=2072"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/bililite.com\/blog\/wp-json\/wp\/v2\/tags?post=2072"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}