Results 1 to 3 of 3

Thread: Get covers from amazon.com like in Amarok

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Aug 2007
    Posts
    244
    Thanks
    42
    Thanked 8 Times in 8 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Get covers from amazon.com like in Amarok

    Hi,
    Like in Amarok I would like adding to my application the possibility to download covers from Amazon.com.

    Looking amarok source code I have extracted the needed code (little modified):

    Qt Code:
    1. ...
    2. // Static license Key. Thanks hydrogen ;-)
    3. const QString LICENSE( "11ZKJS8X1ETSTJ6MT802" );
    4. ...
    5. QString url;
    6. url = "http://ecs.amazonaws.com"
    7. + "/onca/xml?Service=AWSECommerceService&Version=2007-10-29&Operation=ItemSearch&AssociateTag=webservices-20&AWSAccessKeyId=" + LICENSE
    8. + "&Keywords=" + searchString()
    9. + "&SearchIndex=VideoGames&ResponseGroup=Small,Images";
    10. ...
    To copy to clipboard, switch view to plain text mode 

    Pasting the code in a browser works. Now I have two questions?

    1) Is the service free? Can I use the code like it is or it is needed a registration and a personal/application license?

    2) Images have two white vertical stripes left and right to the cover; which method should I use for crop them and have a qpixmap with only the cover?

    Thanks
    Giuseppe CalÃ

  2. #2
    Join Date
    Aug 2006
    Posts
    250
    Thanks
    19
    Thanked 49 Times in 36 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Get covers from amazon.com like in Amarok

    What I don't understand is why there is a SearchIndex=VideoGames in that link. Shouldn't we be looking for music? Indeed it seems it returns only video game covers. Changing that to Music works much better.

  3. #3
    Join Date
    Aug 2007
    Posts
    244
    Thanks
    42
    Thanked 8 Times in 8 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: Get covers from amazon.com like in Amarok

    Why I should change that? I never said that my application is a clone of amarok. Infact, I need game covers so the code is right. The problems are others...

    Bye
    Giuseppe CalÃ

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.