Results 1 to 3 of 3

Thread: Amazon Product Advertising API - Signed requests

  1. #1
    Join Date
    Apr 2008
    Posts
    39
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Amazon Product Advertising API - Signed requests

    Hi.

    Until now, the Amazon Associate Web Service offers the possibility to retrieve product relevant data (like pictures) with kind of anonymous requests like this:

    Qt Code:
    1. http://ecs.amazonaws.com/onca/xml?Service=AWSECommerceService
    2. &Version=2008-04-07
    3. &Operation=ItemSearch
    4. &AWSAccessKeyId=FFFFFFFFFFFFFFFFFFFF
    5. &ResponseGroup=Images
    6. &SearchIndex=Music
    7. &Artist=Beatsteaks
    8. &Title=Joe
    To copy to clipboard, switch view to plain text mode 

    But that won't be possible after 15th August 2009 anymore. Requests have to be signed with your "Secret Access Key" - not only the "Access Key ID". They look like this:

    Qt Code:
    1. http://ecs.amazonaws.com/onca/xml?Service=AWSECommerceService
    2. &AWSAccessKeyId=FFFFFFFFFFFFFFFFFFFF
    3. &Artist=Billy&Operation=ItemSearch
    4. &ResponseGroup=Images
    5. &SearchIndex=Music
    6. &Timestamp=2009-07-13T09%3A21%3A27.000Z
    7. &Title=Rusted
    8. &Version=2009-03-31
    9. &Signature=Xy%2BEafxOkFeWmxg3dGVTRWMsPPQCFWqDO7JMEQTIO00%3D
    To copy to clipboard, switch view to plain text mode 

    The signature field is problematic. Your application needs to compute this signature for each request based on the request fields and your secret key.

    How is it possible to perform this signing wihout putting your secret key in your applications source code in plain text? I think this would be very dangerous.

    Any ideas?

    Bye

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: Amazon Product Advertising API - Signed requests

    You might provide an online service for your clients to sign requests - they send you the request, you sign it and send it back. You can protect your online service by using certificate based ssl access so that only authorized clients can use it.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  3. #3
    Join Date
    Apr 2008
    Posts
    39
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Amazon Product Advertising API - Signed requests

    Are there existing proxy solutions (web services) available? Well ... I think that would be illegal...

    Bye
    Last edited by youkai; 13th July 2009 at 11:44.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.