Accessing AWS using PHP to get Amazon product data - a short guide

Discussion in 'Amazon' started by markowe, Nov 18, 2008.

  1. markowe

    markowe Well-Known Member

    Messages:
    1,136
    Likes Received:
    26
    Best Answers:
    0
    Trophy Points:
    165
    #21
    Amazon have recently announced some changes, as follows:

    Basically, apart from the name change, the important thing if you are programming AWS applications is that after August 15th you will have to authenticate your calls differently - I read the docs briefly and it seems you need to generate some sort of public key from your private key - it won't just be a case of using your API key. Guess it wasn't secure enough like that. Doesn't sound too complicated, so if I figure it out (which I MUST, else some of my stuff will stop working!) then I will try to describe it here simply.
     
    markowe, May 19, 2009 IP
  2. gwchua

    gwchua Peon

    Messages:
    10
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #22
    all these things may not work when it comes to 15th august 2009. You need your secret access key. As all queries to amazon need authentication.
     
    gwchua, May 21, 2009 IP
  3. markowe

    markowe Well-Known Member

    Messages:
    1,136
    Likes Received:
    26
    Best Answers:
    0
    Trophy Points:
    165
    #23
    Yes, please see my comment above - hopefully I can explain this too, once I get round to figuring it out myself!
     
    markowe, May 26, 2009 IP
  4. markowe

    markowe Well-Known Member

    Messages:
    1,136
    Likes Received:
    26
    Best Answers:
    0
    Trophy Points:
    165
    #24
    Just to complete this, as mentioned above, the procedure now for accessing AWS (now called the Product Advertising API) is a little more complicated. Basically, along with the request described above you need to attach a hashed key which is created from your original Access Key ID and a new Secret Access Key you get in your AWS back end. To save us all a lot of hassle, some people have kindly put together code to achieve this easily.

    I found this snippet very useful - it works with PHP4 too. I had this one up and running within minutes.

    Also, a DP user kindly came up with some code too, which probably only works with PHP5 (uses built-in hashing function) but is even shorter.

    Now all we have to do is... sell stuff...!
     
    markowe, Jun 18, 2009 IP
  5. bluebenz

    bluebenz Well-Known Member

    Messages:
    876
    Likes Received:
    9
    Best Answers:
    2
    Trophy Points:
    138
    #25
    Thank you, this is what I'm looking for..
     
    bluebenz, Jun 21, 2009 IP